Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 20 21:30
    lefou reopened #664
  • Aug 20 21:30
    lefou closed #664
  • Aug 20 20:07
    gabro synchronize #678
  • Aug 20 16:01
    gabro opened #678
  • Aug 18 20:41
    markehammons opened #677
  • Aug 18 20:36
    markehammons closed #570
  • Aug 18 20:36
    markehammons synchronize #570
  • Aug 11 14:49
    adadima synchronize #664
  • Aug 05 17:46
    lefou review_requested #664
  • Aug 01 00:03
    kag0 opened #670
  • Jul 31 13:26
    adadima synchronize #664
  • Jul 31 07:06
    adadima synchronize #664
  • Jul 29 15:29
    adadima synchronize #664
  • Jul 29 13:35

    lihaoyi on gh-pages

    first commit (compare)

  • Jul 29 12:56

    lefou on master

    add ability to define jar manif… (compare)

  • Jul 29 12:56
    lefou closed #634
  • Jul 29 12:32

    lihaoyi on gh-pages

    first commit (compare)

  • Jul 29 11:52

    lihaoyi on master

    Future-proof Dotty-version chec… (compare)

  • Jul 29 11:52
    lihaoyi closed #663
  • Jul 29 11:16
    adadima synchronize #664
Leway Colin
@colin4124

Hi, mill got error:

[27/37] foo.compile 
[info] Compiling 1 Scala source to foo/out/foo/compile/dest/classes ...
[error] foo/src/Main.scala:3:14: object tools is not a member of package scala
[error] import scala.tools.reflect.ToolBox

But I use scalac Main.scala is fine

nafg
@nafg
@colin4124 you probably need to add scala-reflect to your ivyDeps
Leway Colin
@colin4124
import mill._
import mill.scalalib._

object foo extends ScalaModule {
  def scalaVersion =  "2.12.6"

  def millSourcePath = super.millSourcePath / ammonite.ops.up

  def ivyDeps = Agg(
    ivy"${scalaOrganization()}:scala-reflect:${scalaVersion()}"
  )
}
nafg
@nafg
Does ivy"" support string interpolation?
oh I see the docs do that
@colin4124 I think that class is actually in scala-compiler jar
Leway Colin
@colin4124
Yes, thanks very much!
2efper
@2efPer
Hi.How can I extract all dependencies jar into a directory?
2efper
@2efPer
I don't want a fat jar because this problem, I don't know how to fix in mill.
nafg
@nafg
How can I make the JVM server get the results of fastOpt for local dev and of fullOpt for packaging?
Justin Kaeser
@jastice
would someone like to help reviewing the Build Server Protocol PR: lihaoyi/mill#664
nafg
@nafg
@jastice what does reviewing it consist of doing?
nafg
@nafg
Is there a Mill equivalent of sbt-dynver?
nafg
@nafg
Help?
app_lrbcol.upstreamAssembly java.nio.file.FileAlreadyExistsException: /META-INF
nafg
@nafg
Is there any equivalent of sbt testQuick?
Justin Kaeser
@jastice
@nafg looking at the code and pointing out potential problems and improvements. Or even testing it :)
megri
@megri
@pme123 Answered :)
Pascal Mengelt
@pme123
@megri thanks
Tobias Roeser
@lefou
@nafg Hard to answer questions that require deep sbt knowledge. Either tell what the sbt feature you mentioned is doing or just ask for a concrete feature.
nafg
@nafg
@lefou was that in reference to testQuick? Or sbt-dynver?
Or something else?
Tobias Roeser
@lefou
@nafg both
Not all mill users come from sbt
2efper
@2efPer
How to generate a new file in my task ,and put it in out/xxx/assembly/dest ? It seems only has T.ctx.dest command to my own task's output directory.
Li Haoyi
@lihaoyi
you override the assembly task and then T.ctx.dest will point to the right folder
and call super.assembly if you want to reference or copy the original files
Nils Homer
@nh13
I want to run mill mill.scalalib.GenIdea/idea when my project depends on snapshots. I get a failure for resolution failures. I have added additional resolvers for my build, but how do I do the same for the task to generate idea files?
Here's a gist with more (log) information: https://gist.github.com/nh13/2624f965fcf359dd672b81b6a8aedd9c
Thank-you for any help folks could offer in advance.
nafg
@nafg
@lefou ok. testQuick only runs tests that need to be run, namely if they didn't pass before or if code they depend on changed
That's built in to sbt
sbt-dynver is an sbt plugin to calculate the version based on git tags
I guess somewhat similar to how Mill itself is versioned
Tobias Roeser
@lefou
It's currently not a plugin, but you might want to have a look at the following code snipped from one of my mill projects. https://github.com/lefou/mill-osgi/blob/8fabf67f49ee7c399cab6590fe1e7978a2225c20/build.sc#L141
I think I derived it from mill's own version calculation.
@nafg above relates to sbt-dynver
regarding the testQuick, I don't know such a mechanism in mill
Tobias Roeser
@lefou
But it would be a very useful contribution to mills test support. Starting point would be mill.scalalib.TestSupport
It defers most work to the underlying test framework. If the test framework already supports that feature via (cmdline) args, you can already just give them directly.
E.g. mill _.test.test --my-magic-option
nafg
@nafg
@lefou my main blocker from using mill right now is how to switch between fastOpt vs. fullOpt, and that assembly was crashing
Not crashing
Well crashing because of a conflict that I couldn't fix
I don't think the underlying framework can support testQuick because it doesn't have access to which files changed
nafg
@nafg
app_lrbcol.upstreamAssembly java.nio.file.FileAlreadyExistsException: /META-INF
this did not help:
  override def assemblyRules = super.assemblyRules ++ Seq(
    Assembly.Rule.Append("/META-INF")
  )
Li Haoyi
@lihaoyi
@nafg put some printlns in and debug it
Kabir Idris
@binkabir_gitlab
Hi everyone, how can I test only a specific test class without having to run all the tests in a module.