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

Scalafix and Silencer crash with NoClassDefFoundError #1315

Closed
sideeffffect opened this issue Jan 15, 2021 · 0 comments
Closed

Scalafix and Silencer crash with NoClassDefFoundError #1315

sideeffffect opened this issue Jan 15, 2021 · 0 comments

Comments

@sideeffffect
Copy link
Contributor

sideeffffect commented Jan 15, 2021

When running Scalafix check with Silencer plugin enabled, it crashes with

[error] java.lang.NoClassDefFoundError: scala/tools/nsc/reporters/Reporter$Severity
[error] 	at com.github.ghik.silencer.SilencerPlugin.reporter$lzycompute(SilencerPlugin.scala:31)
[error] 	at com.github.ghik.silencer.SilencerPlugin.com$github$ghik$silencer$SilencerPlugin$$reporter(SilencerPlugin.scala:31)
[error] 	at com.github.ghik.silencer.SilencerPlugin.processOptions(SilencerPlugin.scala:59)
[error] 	at scala.tools.nsc.plugins.Plugin.init(Plugin.scala:70)
[error] 	at scala.tools.nsc.plugins.Plugins.$anonfun$loadPlugins$9(Plugins.scala:162)
[error] 	at scala.tools.nsc.plugins.Plugins.$anonfun$loadPlugins$9$adapted(Plugins.scala:162)

Examples:

This is triggered by upgrade of sbt-scalafix to 0.9.25. (Version of silencer is 1.7.1.)

Bug on the Silencer side ghik/silencer#62

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