question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Silencer plugin suppresses compilation errors when scalafix semantic db is enabled

See original GitHub issue

I 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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
timcharpercommented, Mar 26, 2020

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.

2reactions
ghikcommented, Feb 18, 2020

This is most likely going to be fixed by https://github.com/scalameta/scalameta/pull/1992

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found