fatal error: class scala.annotation.implicitNotFound not found.

I just switched my multi-module maven project from Scala 2.8.0 to 2.8.1 and now receive this error when I build:

fatal error: class scala.annotation.implicitNotFound not found.

That's it - I don't get any additional information about IntelliJ about it.
The thing is: when I simply call Maven clean install from my console it just works.

What can I do?
(please don't say downgrade - it's not an option)

PS: I already restarted the IDE, re-imported my projects and invalided the cache - no luck.


Comment actions Permalink

IDEA calls scalac for each module with the Scala Facet attached. The Scala Facet is configured with the location of scala-compiler.jar and scala-library.jar. These should be automatically generated from your POM file, if you re-import the Maven structure.

The error sounds like you have a mixture of 2.8.0 and 2.8.1.

- Double check your POM
- remove the Scala Facet from each module and then re-import the POM

If you're still stuck, you can enable logging of the command line and full output of scalac.

Add this to log.xml, in the bin folder under the IDEA install.

   <category name="#org.jetbrains.plugins.scala.compiler">
        <priority value="DEBUG"/>
        <appender-ref ref="FILE"/>

Restart, and check idea.log.

Comment actions Permalink

You were right! One module still had a dependency on 2.8.0.
Thanks a lot!


Please sign in to leave a comment.