Silencer plugin suppresses compilation errors when scalafix semantic db is enabled
See original GitHub issueI had recently enabled the silencer sbt plugin and then started noticing really strange behaviour where I knew I had compilation errors but the sbt compile
task would succeed. sbt test
would also succeed but not actually run any tests.
It turns out that there is some sort of incompatibility between Silencer, Scalafix SemanticDB and Scala 2.13.1.
build.sbt
:
scalaVersion := "2.13.1"
addCompilerPlugin(("com.github.ghik" % "silencer-plugin" % "1.4.4").cross(CrossVersion.full))
addCompilerPlugin(scalafixSemanticdb)
src/main/scala/Main.scala
:
object Main extends App {
asldfkhaklsdgjkldfjv
}
project/build.properties
:
sbt.version=1.3.7
project/plugins.sbt
:
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.11")
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
scalacenter/scalafix - Gitter
sbt, i have this error : [error] (dao / Compile / scalafix) scalafix.sbt.InvalidArgument: The semanticdb-scalac compiler plugin is required to run semantic ......
Read more >Installation · Scalafix - Scala Center
[E2] The Scala compiler option "-Ywarn-unused" is required to use RemoveUnused ... The first error message means the SemanticDB compiler plugin is not...
Read more >SemanticDB Guide - Scalameta
SemanticDB is a data model for semantic information such as symbols and types about programs in Scala and other languages. SemanticDB decouples production ......
Read more >Xlint, -Xfatal-warnings, そして Scalafix を用いた Scala の厳格化
2015年に Roman Janusz (@rjghik) さんが silencer というコンパイラ・プラグインを書いていて、まさに警告の抑制を行っている。 Scala compiler plugin ...
Read more >awesome-scala - CD2H gitForager
[DEPRECATED] sbt's scala incremental compiler; scalacenter/scalafix - Refactoring and ... ghik/silencer - Scala compiler plugin for annotation-based warning ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have this issue when using scala 2.13.1, scalafix 0.9.11 and silencer 1.6.0.
Updating to scalafix 0.9.12 fixes the problem for me.
This is most likely going to be fixed by https://github.com/scalameta/scalameta/pull/1992