Skip to content

Commit

Permalink
improvement: Don't add release flag for versions from 17
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tgodzik committed Oct 28, 2024
1 parent 6453328 commit 381afe9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ class CompilerConfiguration(
} yield jvmVersion.major

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

0 comments on commit 381afe9

Please sign in to comment.