Skip to content
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

Missing dependency 'object scala in compiler mirror' when running sbt console #364

Closed
raulraja opened this issue Jun 20, 2017 · 3 comments
Closed
Labels
Projects
Milestone

Comments

@raulraja
Copy link
Contributor

[init] error: error while loading Object, Missing dependency 'object scala in compiler mirror', required by /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/rt.jar(java/lang/Object.class) [error] (run-main-0) java.lang.reflect.InvocationTargetException

@raulraja raulraja added the bug label Jun 20, 2017
@raulraja raulraja added this to the Release 0.4.0 milestone Jun 20, 2017
@LGLO
Copy link

LGLO commented Jun 20, 2017

I'm afraid that it problem outside freestyle.

I have made a project with simple build.sbt:

scalaVersion := "2.12.2"
addCompilerPlugin("org.scalameta" %% "paradise" % "3.0.0-M9" cross CrossVersion.full)

With no dependency on freestyle and it exhibit same error.

@raulraja
Copy link
Contributor Author

More info on the subject, seems like the macroparadise plugin for scalameta does not work in the REPL yet:
http://scalameta.org/tutorial/#Setupbuild
https://github.com/scalameta/paradise/issues/10

@raulraja
Copy link
Contributor Author

Looks like adding:

scalacOptions += "-Xplugin-require:macroparadise",
scalacOptions in (Compile, console) := Seq() 

to the scala meta option in sbt will make it not crash but not sure it's gonna expand the macros either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants