'Cannot find symbol' in IntelliJ 14

I have been using IntelliJ Scala plugin before, in 13 and 13.1. I updated to 14 and it no longer works for my SBT project.

For all standard Scala files I see errors like "Can't find scala.Option symbol".

in a Scala project, compiler error - can't resolve character list? says I need a Scala facet for my module. I was looking at the edge and Scala was not an option.

enter image description here

I uninstalled IntelliJ and Scala plugin, my settings and project files several times, but it still happens.

How to fix it?

+3


source to share


4 answers


I fixed this using nightly builds of the Scala plugin.



Fixes are now included in stable releases.

0


source


new scala plugin for intellij 14 removed the edge and replaced it with the scala SDK library, see blog

for sbt project, I think the best option is to recreate your project:



File -> open -> select build.sbt of your project from popup menu -> delete existing project and import

+4


source


I had a similar problem where a Java module calls a Scala object. The problem was related to a misconfiguration in Source Folders; the Scala source was at src / main / scala / ... but the Project Structure

source folders were set as src

default. When I changed it like src/main/scala

, the Java module can find the Scala object correctly.

enter image description here

+1


source


In my case, I just had to restart the IDE ...

0


source







All Articles