Module compiles, but editor shows compilation issues

Answered

Since I reorganized my environment today (New project, clean checkout of code from SVN), I have not been able to edit code without the editor showing 'compilation issues' for code that does actually compile.

I have a bunch of Maven modules that compile file using Maven (both from command line and from IDEA) and compilation from IDEA (Build -> Compile/Make) works as well.
But when opening one of the java files, all referenced types that do not originate from my Maven module itself (types from dependencies) are marked as compilation problems ('Cannot resolve symbol XYZ') in the editor. Code completion only reveals types from dependencies when I type the fully qualified name, but a type entered this way is still displayed as a compilation problem (red).

I have no clue what is going wrong here. Has any encountered this behaviour before? I am using IDEA 13.1.1.

4
34 comments

Had the same problem.
Invalidate caches did not work,

Open repository in a different folder did not work.

The Intellij version update did the work but god, god!!!!
What are the bugs? I am a good man. don't deserve it.

0

Doron Fedida
Next time you encounter this issue, please:

0

I usually start with the Invalidate Caches option method described in this answer. If that doesn't work, then I follow up with deleting the .idea folder, as described in the following answer. stackoverflow.com/a/70408136/1910527 

Steps to delete .idea folder:
1. close intelliJ
2. delete .idea folder
3. start intelliJ and wait until it completes the background processes.

Rasool Javeed Mohammad
javeed.mca@gmail.com

0

i had this issue and i saw your comments about invalide cahches and the other methods and it didn't work.. 

the issue was fixed by installing plugin called LomBok and it worked like magic with me . i hope this help somebody

0

Please sign in to leave a comment.