Skip to content

Commit dd93b12

Browse files
committed
chore: make metals believe scala-library-bootstrapped is a scala 3 project
1 parent 5899730 commit dd93b12

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

project/Build.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,9 @@ object Build {
14501450
moduleName := "scala-library",
14511451
version := dottyVersion,
14521452
versionScheme := Some("semver-spec"),
1453+
// sbt defaults to scala 2.12.x and metals will report issues as it doesn't consider the project a scala 3 project
1454+
// (not the actual version we use to compile the project)
1455+
scalaVersion := referenceVersion,
14531456
crossPaths := false, // org.scala-lang:scala-library doesn't have a crosspath
14541457
// Add the source directories for the stdlib (non-boostrapped)
14551458
Compile / unmanagedSourceDirectories := Seq(baseDirectory.value / "src"),

0 commit comments

Comments
 (0)