Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant