Merge pull request #6230 from adpi2/fix-semanticdb

Fix semanticdb on Scala > 3.0.0-M3
This commit is contained in:
eugene yokota 2020-12-25 17:31:55 -05:00 committed by GitHub
commit cd794ee29f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ object SemanticdbPlugin extends AutoPlugin {
},
semanticdbOptions += {
val sv = scalaVersion.value
if (ScalaInstance.isDotty(sv)) "-Ysemanticdb"
if (sv.startsWith("0.") || sv.startsWith("3.0.0-M1") || sv.startsWith("3.0.0-M2"))
"-Ysemanticdb"
else if (sv.startsWith("3.")) "-Xsemanticdb"
else "-Yrangepos"
}
) ++