Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ source code editor shows false compilation errors

I have a problem with the following odd behaviour of the IntelliJ IDEA development environment (version 14) with scala:

After I reset the (global) scala SDK from a 2.11 version to version 2.10.4 the source code editor shows many compilation errors: list, map, print, (1 to n) etc. are all red.

The SDK is added to global libraries and the jars are all found.

However the code compiles and runs correctly (I rebuilt the project to force recompilation). Has anyone ever experienced something like this? How can this be fixed?

I am using tha java sdk 1.7.0_55.

like image 496
michael meyer Avatar asked Mar 13 '15 12:03

michael meyer


1 Answers

In file menu, Invalidate Caches / Restart

also set Incremental Type to SBT in Settings -> Build, Execution, Deployment-> Compiler -> Scala Compiler

like image 119
S.Karthik Avatar answered Oct 14 '22 04:10

S.Karthik