7.0.4 Valid code marked as error

Both I and a colleague have encountered 7.0.4 showing an error in code that is valid and compiles. This only seems to go away when the project is closed and reopened.

I saw it when refactoring a switch statement in a large class that contained several nested classes - the error appeared on the final closing curly brace on the last line, and was 'class' or 'interface' expected.

This is particularly irritating as the squiggly red underlines from this one error propagate up in the project panel through every package level to top of the project itself...

2 comments
Comment actions Permalink

Dave Lorde wrote:

Both I and a colleague have encountered 7.0.4 showing an error in code that is valid and compiles. This only seems to go away when the project is closed and reopened.

I saw it when refactoring a switch statement in a large class that contained several nested classes - the error appeared on the final closing curly brace on the last line, and was 'class' or 'interface' expected.

This is particularly irritating as the squiggly red underlines from this one error propagate up in the project panel through every package level to top of the project itself...

Does this reproduce constantly? Could you give an example of code with
such an error?

0
Comment actions Permalink

Happened twice to me so far, too. I haven't found a way to reproduce.
IIRC I did some copy/paste in the code before the error occurred.

I also occasionally get compiler messages about unknown classes
(while the code in the editor correctly is green). This bug occurs
much less often than in earlier EAP builds. Also: No known way to
reproduce. The bug goes away when doing a full rebuild.

Peter Gromov (JetBrains) wrote:

Dave Lorde wrote:

>> Both I and a colleague have encountered 7.0.4 showing an error in code
>> that is valid and compiles. This only seems to go away when the
>> project is closed and reopened.
>>
>> I saw it when refactoring a switch statement in a large class that
>> contained several nested classes - the error appeared on the final
>> closing curly brace on the last line, and was +'class' or 'interface'
>> expected+.
>> This is particularly irritating as the squiggly red underlines from
>> this one error propagate up in the project panel through every package
>> level to top of the project itself...

Does this reproduce constantly? Could you give an example of code with
such an error?

0

Please sign in to leave a comment.