Cannot find scala library on the classpath, plus a warning abouth the version on the classpath
I want to use a different version of Scala (2.9.1) than the version used by the ScalaIDE classpath container (2.9.2). My Eclipse project references the 2.9.1 jar file directly as per any other dependency and I have removed the ScalaIDE classpath container from the build path.
After doing so, I get an error in the Problems view saying: "Cannot find Scala library on the classpath. Verify your build path!".
At the same time there is also a warning saying: "The version of scala library found in the build path is different from the one provided by scala IDE: 2.9.1.final. Expected: 2.9.2. Make sure you know what you are doing."
See the screenshot attached.
So it looks as though the plugin can see the scala library even though it reports an error. The project seems to build and run ok.
I think there is a bug that is causing the "Error" message to be reported.
After doing so, I get an error in the Problems view saying: "Cannot find Scala library on the classpath. Verify your build path!".
At the same time there is also a warning saying: "The version of scala library found in the build path is different from the one provided by scala IDE: 2.9.1.final. Expected: 2.9.2. Make sure you know what you are doing."
See the screenshot attached.
So it looks as though the plugin can see the scala library even though it reports an error. The project seems to build and run ok.
I think there is a bug that is causing the "Error" message to be reported.
Leave a comment
Screenshot of Problems view
(In revision:3b61e047538d73d03a6bc7ce4d87d1fdbe5c8f2b) Correctly identify the Scala library on the class path, and pass it on to the Sbt builder.
Fixed #1000987
Fixed #1000729
Fixed #1001027
Review by @skyluc, @hubertp
Branch: master
- The Sbt builder uses the same mechanism as the presentation compiler to identify the
- Any scala library can be used now, including a dependent project (that defines scala.Predef).
Fixed #1000987
Fixed #1000729
Fixed #1001027
Review by @skyluc, @hubertp
Branch: master
on 2012-06-15 15:31 *
By Iulian Dragos
(In revision:3b61e047538d73d03a6bc7ce4d87d1fdbe5c8f2b) Correctly identify the Scala library on the class path, and pass it on to the Sbt builder.
Fixed #1000987
Fixed #1000729
Fixed #1001027
Review by @skyluc, @hubertp
Branch: platform/juno
- The Sbt builder uses the same mechanism as the presentation compiler to identify the
- Any scala library can be used now, including a dependent project (that defines scala.Predef).
Fixed #1000987
Fixed #1000729
Fixed #1001027
Review by @skyluc, @hubertp
Branch: platform/juno