You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our previous logic relied on withDefaultValue in the Scalameta version
map to get the version of scalameta plugin.
Issue is, withDefaultValue does not affect .get operations:
```scala
Welcome to Scala 2.12.18 (OpenJDK 64-Bit Server VM, Java 17.0.6).
Type in expressions for evaluation. Or try :help.
scala> val mp = Map("a" -> 2).withDefaultValue(3)
mp: scala.collection.immutable.Map[String,Int] = Map(a -> 2)
scala> mp.get("c")
res0: Option[Int] = None
```
Moreover, we don't need to add semanticdb plugin at all if we're working
on a Scala 3 project.
This comment fixes the logic to be explicit about Scala 3.
Additionally, we amend the semanticdb parameters used to customise
output location, according to https://github.com/sbt/sbt/blob/1.9.x/main/src/main/scala/sbt/plugins/SemanticdbPlugin.scala#L92
* Clean up the build
1. Remove Java 17-ism
2. Upgrade SBT to 1.9.3
3. Remove sbt-bloop (it's added automatically by metals)
0 commit comments