Skip to content

Commit 4ac6d75

Browse files
authored
fix: Use the new way of enabling SemanticDB to fix IDEA compile issue (#218)
1 parent ad329e7 commit 4ac6d75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

project/BuildSettings.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ object BuildSettings {
1515
libraryDependencies ++= Seq(
1616
compilerPlugin(Dependencies.kindProjector),
1717
compilerPlugin(Dependencies.silencer),
18-
compilerPlugin(scalafixSemanticdb), // necessary for Scalafix
1918
Dependencies.silencerLib,
2019
Dependencies.catsEffect,
2120
Dependencies.scalaCollectionCompat,
2221
Dependencies.logbackClassic % Test,
2322
Dependencies.scalaTest % Test
2423
),
24+
semanticdbEnabled := true,
25+
semanticdbVersion := scalafixSemanticdb.revision,
2526
ThisBuild / scalafixDependencies ++= Seq(
2627
Dependencies.scalafixScaluzzi,
2728
Dependencies.scalafixSortImports
2829
),
2930
scalacOptions ++= Seq(
30-
"-Yrangepos", // necessary for Scalafix (required by SemanticDB compiler plugin)
3131
"-Ywarn-unused", // necessary for Scalafix RemoveUnused rule (not present in sbt-tpolecat for 2.13)
3232
"-P:silencer:checkUnused"
3333
),

0 commit comments

Comments
 (0)