-
-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Console fails when using Typelevel Scala with monocle-macro #275
Comments
Ah actually I discovered another problem which shows that |
@julianmichael could you be missing this? |
@lihaoyi It fails with that as well. I did def scalacPluginIvyDeps = super.scalacPluginIvyDeps() ++ Agg(
ivy"org.scalamacros:::paradise:2.1.0"
) I happened to remove it while making the example "minimal," but yeah should have left it in there. The failure is the same. It could be something with |
Seems the problem is that while you subbed out
Not sure what the story around exclusions is for coursier, but I'm sure there's a way to force-exclude those |
Provisional fix in b9e9b68 |
This should be fixed in master, but you'll need to use a newly provided API to enable object foo extends ScalaModule {
def scalaVersion = "2.11.8"
override def mapDependencies(d: coursier.Dependency) = {
val artifacts = Set("scala-library", "scala-compiler", "scala-reflect")
if (d.module.organization != "org.scala-lang" || !artifacts(d.module.name)) d
else d.copy(module = d.module.copy(organization = "org.typelevel"))
}
def ivyDeps = Agg(
ivy"com.github.julien-truffaut::monocle-macro::1.4.0"
)
def scalacPluginIvyDeps = super.scalacPluginIvyDeps() ++ Agg(
ivy"org.scalamacros:::paradise:2.1.0"
)
} |
I'm porting a project over to Mill (using 0.1.7) from SBT and I'm having issues running the
console
command, which is important for my project.I've isolated the problem to the following
build.sc
:When I run
mill -i foo.console
, right when the scala console starts up, it spits out:with a long stack trace, followed by another error with the same message and another long stack trace.
If I remove the
def ivyDeps = ...
statement or the Typelevel Scala specifications, it works fine. Thecompile
target works fine too, including in my actual project which has Scala sources that require the Typelevel compiler (whereas the console has the same error). I also tried changing the Scala version to2.12.0
and again got the same error (though my project needs2.11.8
at the moment).Not sure exactly what's causing this—it seems to be a weird interaction between this dependency and Typelevel Scala. But the console worked fine in my SBT version of the build, and this issue is preventing me from porting over to Mill.
The text was updated successfully, but these errors were encountered: