Upgrade to Scala 2.8.0.RC2 throwing funny errors in IntelliJ scala compiler

I've updated to Scala 2.8.0.RC2 and now Intellij Scala plugin throws some funny compilation errors:

/home/g/i/code/trunk/core/src/main/java/org/infinispan/notifications/Listener.java

error: not found: type _root_
boolean sync() default true;



/home/g/i/code/trunk/server/core/src/main/scala/org/infinispan/server/core/VersionGenerator.scala

error: annotation org.infinispan.notifications.Listener is missing argument sync
@Listener



/home/g/i/code/trunk/core/src/main/java/org/infinispan/marshall/Marshallable.java

error: not found: type _root_
Class<? extends Externalizer> externalizer() default Externalizer.class;



Source code can be found in https://anonsvn.jboss.org/repos/infinispan/trunk/

The compilation works fine from command line and I've verified that I have the RC2 compiler and library set in the project.
8 comments

Reverting to RC1 works fine as well.

IDEA version: 95.66
Scala plugin version: 0.3.1156

0

I've updated Scala to RC2 version and compilation still works fine (at least for Scala plugin itself).

Have you tried to run complete project rebuild?

0

I did indeed and made no difference.

0

Did you specify the new compiler and library JARs in the Scala facet of your Scala-containing modules?


Randall Schulz

0

I highly doubt it's an issue with Scala itself cos as I said at the very beginning, compilation works fine from command line. It's definitely something about the scala plugin that does not interact well with Scala 2.8.0.RC2.

0

I did indeed. Do an svn export of the code that I pointed out, import it into your IntelliJ and try it out with your own eyes

0

Did you read the bug report? The issue only happens if mixed Java/Scala compilation is used. It's possible that your maven build is either not doing that or doing it differently from IDEA.

Ismael

0

Please sign in to leave a comment.