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:


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


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


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.

Reverting to RC1 works fine as well.

IDEA version: 95.66
Scala plugin version: 0.3.1156


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?


I did indeed and made no difference.


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

Randall Schulz


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.


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


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.



Please sign in to leave a comment.