triplequote / intellij-scala

Scala plugin for IntelliJ IDEA
http://blog.jetbrains.com/scala/
Apache License 2.0
0 stars 2 forks source link

Hydra Scala version detection heuristic fallbacks to module SDK version. Fix #37 #38

Closed dotta closed 6 years ago

dotta commented 6 years ago

Our heuristic for extracting the scala version from the scala-compiler jar name may not work if the scala-compiler jar in the classpath has no version happended (this for instance can happen when importing an sbt project with the scalaHome setting set to point to a locally installed Scala distribution).

The implemented solution consists in falling back to the module SDK Scala version if the version cannot be extracted from the scala-compiler jar name.