Skip to content
This repository was 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

@joprice

Description

@joprice

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions