I am using intellij 14 with scala 2.11.6 installed using home brew and symlink using
ln -s /usr/local/Cellar/scala/2.11.6/libexec/src /usr/local/Cellar/scala/2.1
Having similar symptoms, but on a Ubuntu
machine, not using brew
:
I am using /usr/share/sbt/bin/sbt-launch.jar
as launcher. To fix the mentioned problem, I've had to purge the directories 1) project
, 2) target
and 3) .idea
of the relevant Scala projects, doing sbt refresh in IntelliJ (View
- Tool Windows
-> sbt
, hit the Reimport all sbt projects
icon), and rebuild all modules afterwards.
As a last step, when the error occurs further, switch over to Ubuntu shell / terminal, and do a sbt clean compile
in the problematic project folder. Fix the compile issues if some are occuring. If this does not help, change scalaVersion
in build.sbt
e.g. from 2.12.9
to 2.12.8
(the error occurs more often with 2.12.9
), remove scalaOrganization
definition (but keep organization
). Repeat the sbt refresh
of IntelliJ. OMG.