IntelliJ highlights errors that don't exist

Answered

These last days, IntelliJ is not working properly. For instance:

http://i.imgur.com/gtVwi.png

The method receives a String as parameter but it shows an error there. Compilation works fine, but it's annoying to have error markers on my code everywhere. Sometimes restarting the IDE makes it work (closing the file and reopening does not help)... so, is there a way to fix this problem?

33 comments
Comment actions Permalink

@Steffy what settings are those? Is this related to the issue discussed here?

0
Comment actions Permalink

After upgrading from IntelliJ Community version 2018.2 to IntelliJ Community version 2019.1, I had the same issue on Mac OS Mojave with JDK 8. 

Recreated the JDK in new version, and did the Invalidate cache/Restart and that solved the issue. 

0
Comment actions Permalink

Got this error, no matter what I did: invalid/restart, reboot, download latest version etc., still there. Wasted a lot of time. But eventually go it figured it out. Stupid errors like this make me miss eclipse.

For people still bothered by this.

Fix is just delete .idea directory and reimport project.

 

 

0

Please sign in to leave a comment.