History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-19207
Type: Bug Bug
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Esko Luontola
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Good code is red: Code analysis/error highlighting gets out of sync with file contents when creating a new method from usage

Created: 18 Aug 08 16:45   Updated: 18 Aug 08 17:50
Component/s: Editor. Error Highlighting

File Attachments: 1. File reproducing.avi (3.31 Mb)

Image Attachments:

1. 2008-08-18_152315.png
(141 kb)
Environment: WinXP, Core 2 Quad Q6600

Build: 7,938
Severity: Medium


 Description  « Hide
As seen from the attached picture, the error highlighting in the editor is not synced with the file contents. It can be reproduced as shown in the attached video:

1. create new method from usage
2. use default return type, press enter
3. use default parameter type, press enter
4. when entering the parameter name, move the cursor left with the arrow keys (important for reproducing!) so that the cursor will be somewhere inside the parameter name, the red borders around the parameter name should still be visible, then press enter
5. now the method is highlighted red as if it had not return statement, even though the editor just added a "return null;"

The error highlighting gets back to sync only after the just created method is modified. Modifications elsewhere in the file may not always fix the error highlighting.

I've also uploaded a memory snapshot to the FTP server: 7938_ORFJackal_18.08.2008_15.19.34.zip



 All   Comments   Work Log   Change History      Sort Order:
Esko Luontola - 18 Aug 08 16:51
I can reproduce this also on IDEA 7.0.4 build 7941.