On Fri, Oct 26, 2012 at 9:05 PM, Peter <empen.sc...@gmail.com> wrote:
> I'm experiencing differences regarding compiler errors when compiling the
> same code base with
Is `findEntry` a method that has default parameters?
There are two overloaded versions of findEntry. The first is defined in scala.collection.mutable.FlatHashTable, the other in scalax.collection.mutable.ExtHashSet. Default parameters are not involved.
For compiling with the Scala IDE, you just need to place a project at Core/src without any library dependencies. For compiling with SBT 0.12.1, first refer to project/readMe.txt and then execute on the SBT console
> project Graph-core > compile
You'll find 11 significant [error] lines while warnings should be ignored all together.
> Maybe a mismatch between the Scala library version used in your Sbt build > definition and the one in the IDE (i.e., Scala 2.10.0-RC1).
> I've never set any specific version to the Scala Library either in Eclipse
or in SBT. Do I have to? I'm just setting the compiler version. In SBT, scala-version == scala-binary-version == 2.10.0-RC1
SBT also reports: [warn] Binary version (2.10) for dependency org.scala-lang#scala-library;2.10.0-RC1 [warn] in com.assembla.scala-incubator#graph-core_2.10.0-RC1;1.5.2 differs from Scala binary version in project (2.10.0 -RC1).
> Maybe a mismatch between the Scala library version used in your Sbt build definition and the one in the IDE (i.e., Scala 2.10.0-RC1).
> I've never set any specific version to the Scala Library either in Eclipse or in SBT. Do I have to? I'm just setting the compiler version.
> In SBT, scala-version == scala-binary-version == 2.10.0-RC1
In Sbt, by setting the scala-version, you are effectively setting both the Scala library and compiler version. In Eclipse, the answer depends on how you configured your project's classpath: make sure you only have one scala-library.jar, and that its version is indeed 2.10.0-RC1.
> SBT also reports:
> [warn] Binary version (2.10) for dependency org.scala-lang#scala-library;2.10.0-RC1
> [warn] in com.assembla.scala-incubator#graph-core_2.10.0-RC1;1.5.2 differs from Scala binary version in project (2.10.0
> -RC1).