custom scala-library needs specific filename
Putting a custom scala-library.jar on the classpath (to build the scala/scala project) requires the file to have that exact name.
The file resulting from an sbt build of scala/scala has the name "scala-library-2.10.0-SNAPSHOT.jar", when putting it on the classpath in eclipse you get an error:
The file resulting from an sbt build of scala/scala has the name "scala-library-2.10.0-SNAPSHOT.jar", when putting it on the classpath in eclipse you get an error:
2012-05-16 10:40:39,138 INFO [Worker-11] - EclipseSbtBuildManager - Cannot find Scala library on the classpath. Verify your build path! Using default library corresponding to the compiler
2012-05-16 10:40:39,138 ERROR [Worker-11] - EclipseSbtBuildManager - Error in Scala SBT builder
java.lang.Exception: Cannot find Scala library on the classpath. Verify your build path!
at scala.tools.eclipse.buildmanager.sbtintegration.EclipseSbtBuildManager.runCompiler(EclipseSbtBuildManager.scala:345)
at scala.tools.eclipse.buildmanager.sbtintegration.EclipseSbtBuildManager.update(EclipseSbtBuildManager.scala:331)
at scala.tools.eclipse.buildmanager.sbtintegration.EclipseSbtBuildManager.build(EclipseSbtBuildManager.scala:433)
at scala.tools.eclipse.ScalaProject.build(ScalaProject.scala:750)
at scala.tools.eclipse.ScalaBuilder.build(ScalaBuilder.scala:114)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
Leave a comment
(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