simulacrum-scalafix icon indicating copy to clipboard operation
simulacrum-scalafix copied to clipboard

Crossbuild simulacrum-scalafix for compatibility with advanced semantic rules

Open danslapman opened this issue 6 months ago • 0 comments

Some advanced semantic scalafix rules (like built-in ExplicitResultTypes) requires setting up scalafixScalaBinaryVersion. Since simulacrum-scalafix in only built with scala 2.12 it's impossible to use it simultaneously with ExplicitResultTypes enabled. Please, crossbuild the "main" rule artefact

The error is like:

scalafix.sbt.InvalidArgument: Failed to fetch [Dependency(Module(org.typelevel, simulacrum-scalafix_2.13), 0.5.4), Dependency(Module(org.typelevel, simulacrum-scalafix_2.13), 0.5.4), Dependency(Module(org.typelevel, simulacrum-scalafix_2.13), 0.5.4), Dependency(Module(org.typelevel, simulacrum-scalafix_2.13), 0.5.4), Dependency(Module(org.typelevel, simulacrum-scalafix_2.13), 0.5.4), Dependency(Module(org.typelevel, simulacrum-scalafix_2.13), 0.5.4), Dependency(Module(org.typelevel, simulacrum-scalafix_2.13), 0.5.4), Dependency(Module(org.typelevel, simulacrum-scalafix_2.13), 0.5.4)]from [IvyRepository(file:/Users/danslapman/.ivy2/local/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], dropInfoAttributes = false), MavenRepository(https://repo1.maven.org/maven2), MavenRepository(https://oss.sonatype.org/content/repositories/public)]

danslapman avatar Feb 03 '24 18:02 danslapman