Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse stops highlighting references after a while

When I open a Java file for editing in Eclipse, references highlighting works well for a while, but then suddenly stops working after some minutes.

On this example, parameters was the last variable correctly highlighted, but now it's no longer working and not highlighting anything else (it should highlight password):

Screenshot of problem example

Toggling Mark Occurrences off and back on doesn't solve it. I've already tried restarting Eclipse and rebooting the computer (had this problem for weeks actually).

The only workaround I found so far is closing the file, and reopening it. But then it stops working again after some time.

For info, I am using Eclipse 4.2.2, on Windows 7 64 bit machine.

like image 797
minipif Avatar asked Apr 08 '13 10:04

minipif


3 Answers

WORKAROUND: select something in the Outline view (on the right) and then go back to the editor.

(For more info see this bug report)

like image 125
Mladen B. Avatar answered Oct 01 '22 05:10

Mladen B.


It's already reported as Eclipse Juno issue and the reason is in this bug. Looks like this update should help.

like image 34
amukhachov Avatar answered Oct 01 '22 06:10

amukhachov


Known bug in Juno,this feature goes Off/On frequently. I'm using Alt+Shift+O as workaround!!

like image 24
Yevanna Yejjala Avatar answered Oct 01 '22 05:10

Yevanna Yejjala