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

Error when using repl with a compiler plugin configured with global_scalacopts #262

Open
joprice opened this issue Dec 30, 2019 · 0 comments

Comments

@joprice
Copy link
Contributor

joprice commented Dec 30, 2019

I get the following error when starting a repl with a compiler plugin configured:

scala> [init] error: Missing required plugin: wartremover
[init] error: bad option: -P:wartremover:only-warn-traverser:org.wartremover.warts.Product
[init] error: bad option: -P:wartremover:excluded:bazel-out
Interpreter encountered errors during initialization!

Exception in thread "Thread-1" java.lang.InterruptedException
	at java.util.concurrent.SynchronousQueue.put(SynchronousQueue.java:879)
	at scala.tools.nsc.interpreter.SplashLoop.run(InteractiveReader.scala:77)
	at java.lang.Thread.run(Thread.java:748)

I'm configuring the scalacopts in configure_zinc_scala as follows:

global_scalacopts = [
        "-P:wartremover:only-warn-traverser:org.wartremover.warts.Product",
        "-Xplugin-require:wartremover",
        # this ignores generated code like that created by play-routes compilation
        "-P:wartremover:excluded:bazel-out",
],
global_plugins = [
        "@scala_2_11//:org_wartremover_wartremover_2_11_12",
 ],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant