Juanjico
Juanjico

Reputation: 177

Eclipse dont mark correctly occurrences

I don't know why Eclipse incorrectly mark occurrences of, for example, variables in my code. This is a screenshoot:

enter image description here

What is Eclipse selecting ???? And, If I put the cursor on any part without any varible, it show a lot of highlight over the screen:

enter image description here

Any idea ? Thanks!

Upvotes: 1

Views: 788

Answers (2)

Jeff
Jeff

Reputation: 591

This was the main reason I switched to NetBeans for PHP development, once I have modified the source code I have to close and re-open it in order for mark occurence working properly, so boring. only happens in PHP editor, for Java editor, all fine

Upvotes: 0

Jonathan Fuerth
Jonathan Fuerth

Reputation: 2190

This happens to me in JDT (Java code) every once in a while. Try working through these steps (in increasing order of severity) until the problem goes away:

  1. Clean the project or the entire workspace (Project -> Clean...)
  2. Close the editor tab for that file (File -> Close, or Ctrl-W), then open it again
  3. Right click the PDT project in the explorer and close the project (this should have the side effect of closing all the editor tabs associated with that PDT project), then open the project again
  4. Close the project (like in step 3) but quit Eclipse and then restart it before opening the project again

Usually step 1 or 2 will fix the problem, but there are times when I have had to go all the way to step 4 to get JDT to behave itself.

Upvotes: 1

Related Questions