Error downloading org.scalameta:semanticdb-scalac_2.13.6:4.4.10

Viewed 691

I recently upgraded to Scala 2.13.6 and I am seeing:

Error downloading org.scalameta:semanticdb-scalac_2.13.6:4.4.10

when I try to build.

I had a similar error when I upgraded to 2.13.5, but was able to add semanticdbVersion := "4.4.11" to build.sbt to get it to work.

This is not working this time.

2 Answers

I assume you are using the sbt-scalafix plugin in your build. This kind of error can happen if you update the scala version before you update the scalafix plugin to the latest version because the semanticdb version is usually set via this setting in your build.sbt (At least this is the official recommendation):

semanticdbVersion := scalafixSemanticdb.revision

In case of scala v2.13.6 I needed to bump the version of sbt-scalafix to v0.9.28 to fix the error you described.

Related