-
-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GenIdea: Improved Scala 3 Support #1486
Conversation
# Conflicts: # scalalib/src/GenIdeaImpl.scala
@informarte I hopefully improved the situation this time. |
.flatMap(y => | ||
y._2.map { | ||
case (path, 0) => path -> y._1 | ||
case (path, idx) => path -> s"${y._1} (${idx})" | ||
} | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving out the index for the first element fixed failing tests on WIndows, where for unknown reasons we always ended up with a scala-library-2.13.6.jar (0)
.
scalalib/src/GenIdeaImpl.scala
Outdated
case _ if compilerCp.iterator.isEmpty => None | ||
case _ if name.startsWith("scala3-library_3-3.0.") => Some("Scala_3_0") | ||
case _ if name.startsWith("scala-library-2.13.") => Some("Scala_2_13") | ||
case _ if name.startsWith("scala-library-2.12.") => Some("Scala_2_12") | ||
case _ if name.startsWith("scala-library-2.11.") => Some("Scala_2_11") | ||
case _ if name.startsWith("scala-library-2.10.") => Some("Scala_2_10") | ||
case _ if name.startsWith("scala-library-2.9.") => Some("Scala_2_9") | ||
case _ if name.startsWith("dotty-version-0.27") => Some("Scala_0_27") | ||
case _ => None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Decided to hardcode the mapping, as Scala 3 support in IJ is still in development and it's a bit unclear if we settle with the current mapping or not.
Implement
language-level
property for Scala library in IntelliJ IDEA.