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",
],