Skip to content

Commit 381afe9

Browse files
committed
improvement: Don't add release flag for versions from 17
I noticed some issues with Scala 2.13.15 and I am not sure how to work around it. This can be worked around if the user needs it as Metals does work with 17 and up. For reference: - scala/bug#13045 - scalameta#5272
1 parent 6453328 commit 381afe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metals/src/main/scala/scala/meta/internal/metals/CompilerConfiguration.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ class CompilerConfiguration(
396396
} yield jvmVersion.major
397397

398398
releaseVersion match {
399-
case Some(version) =>
399+
case Some(version) if version < 17 =>
400400
/* Filter out -target: and -Xtarget: options, since they are not relevant and
401401
* might interfere with -release option */
402402
val filterOutTarget = scalacOptions.filterNot(opt =>

0 commit comments

Comments
 (0)