Editor displays compile errors that are not errors

已回答

so this is something that has become increasingly bad over the last year. It used to be something where I'm surprised it happens and then doesn't happen again for several weeks. But these days I run into this issue several times a week. And while it's always a bit different, the same repeating issue is: The editor displays compile errors that are no compile errors. Sometimes it helps to restart IntelliJ and clear the cache. I also had it happen a few times that I alt-tab into a different window and after a few minutes of inactivity, the error is no longer displayed.

It's getting really annoying.

it's stuff like this: I just comment out some lines and that's already too much for IntelliJ.

 

the error is “unrecognized token”.

Is there something that I can do against this behaviour?

1

Hi Dirk Haase , could you please help to monitor if there are any high Memory or high CPU issue when you are editing the code, especially when such an error occurs?

I met such an issue in IDEA actually, but it waits for 1-2 seconds then everything is fine.

Sometimes the index data is not updated would also lead to such issues.

  1. Back up and remove the .idea folder and .iml file in your project
  2. File | New | Project from existing sources to import the current project and rebuild index files.
1

请先登录再写评论。