You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #275 (awesome fix by the way, thank you!) — macros seem to be expanded properly when executing compile, run, or console, but scaladoc is complaining about them being missing. This also causes e.g. publishLocal to fail since it relies on docJar. Minimal example: build.sc:
Running mill foo.run prints out bar as expected. However, mill foo.docJar produces:
[15/15] foo.docJar
/Users/julian/Documents/scratch/test/foo/src/Main.scala:5: error: value bar is not a member of object Foo
println(Foo.bar.get(Foo("bar")))
^
model contains 3 documentable templates
one error found
1 targets failed
foo.docJar ammonite.ops.InteractiveShelloutException
mill.modules.Jvm$.subprocess(Jvm.scala:180)
mill.scalalib.ScalaModule.$anonfun$docJar$2(ScalaModule.scala:226)
mill.scalalib.ScalaModule$$Lambda$2307/1935861231.apply(Unknown Source)
mill.define.ApplyerGenerated.$anonfun$zipMap$2(ApplicativeGenerated.scala:7)
mill.define.ApplyerGenerated$$Lambda$2232/2014319819.apply(Unknown Source)
mill.define.Task$MappedDest.evaluate(Task.scala:348)
The failure is being thrown during the Scaladoc subprocess call in docJar. I tried adding scalacPluginClasspath().map(_.path) to the classpath in the subprocess call but the problem remained.
The text was updated successfully, but these errors were encountered:
Related to #275 (awesome fix by the way, thank you!) — macros seem to be expanded properly when executing
compile
,run
, orconsole
, but scaladoc is complaining about them being missing. This also causes e.g.publishLocal
to fail since it relies ondocJar
. Minimal example:build.sc
:foo/src/Main.scala
:Running
mill foo.run
prints outbar
as expected. However,mill foo.docJar
produces:The failure is being thrown during the Scaladoc
subprocess
call indocJar
. I tried addingscalacPluginClasspath().map(_.path)
to the classpath in the subprocess call but the problem remained.The text was updated successfully, but these errors were encountered: