-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks for your help, François. I'll answer your questions below.
On 06/27/2014 12:53 PM, François Garillot wrote:
> Those messages occur when the presentation compiler is not running
> in compatibility mode, which is detected by checking that compiler
> Options include '-Xsource:2.10'.
>
> If you reopen the Project's properties, you should see
> '-Xsource:2.10' and '-Ymacro-expand:none' at the end of the
> 'Additional command line parameters' line. After setting project
> settings to '2.10', if you have logging in debug mode, you should
> also see a line declaring that these compiler options have been
> added to this project's parameters. Is that the case ?
I don't know if my IDE is logging in debug mode. How do I check, and
enable debug mode if needed?
After switching 'Scala Source Level' to 2.10, the 'additional command
line parameters' box is still blank. If I add the values you
mentioned to that field and let Eclipse do a clean and rebuild, the
errors I saw in Eclipse's problems view go away and are replaced by:
> The version of scala library found in the build path (2.11.1) is
> incompatible with the one expected by scala IDE (2.10). Please
> replace the scala library with the scala container or a compatible
> scala library jar. shrine-util Unknown Scala Classpath Problem
Which makes sense, as I have a library container, 'Scala Library
[2.11.1]' on my project's build path.
> While they would run on a tweaked 2.11 scala presentation compiler,
> your 2.10 projects should ultimately have the same classpath : if
> you have a 2.10 project, the scala-compiler, and scala-library on
> classpath should be 2.10.
This is good to know.
> I suspect you are relying on the default scala class path
> container provided by Eclipse. Would you mind expanding the details
> of whatever you have for Scala in your build path menu until you
> see versions and checking what number comes out ?
That's the case. I was using the default Scala class path container
which brings in 2.11.1 jars.
> If it's not a 2.10 scala, you should remove any 2.11 classpath
> container and replace it by pointing to 2.10 scala jars
> (scala-compiler, scala-library).
I tried doing this with an explicit Maven dependency on
org.scala-lang:scala-library:2.10.4, but after lots of clean-rebuilds
and right-click->Maven->Update Project, I still see
> Unable to find a scala library. Please add the scala container or a
> scala library jar to the build path. shrine-util Unknown Scala
> Classpath Problem
in the problems view. I can make that error go away by adding a
scala-library jar on my filesystem to the build path as an external
jar, but that's not workable for my ~30 projects, unfortunately.
> On a side note, while adapting the Scala classpath container
> manually is still a requirement for this version, we have an
> automatic adapter that will do that for you currently in review. It
> should hit a nightly pretty soon, and I'm already working on
> improvements of that feature.
That's great news. I'll try out the next milestone when it arrives.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iEYEARECAAYFAlOtwD8ACgkQ0GFaTS4nYxsQ5QCfRZyjOdycblGYeMmvLB+Hqhwj
FtUAoIt6ifAWkfz1NY1ftyl1oBRcHw73
=DyJF
-----END PGP SIGNATURE-----