Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to purge false errors in eclipse?

From time to time in eclipse with ADT, I am getting errors that stick around even after I remove the offending code; in fact, they stay even if I delete the entire content of the file, as per this screen shot:

enter image description here

The error is Syntax error on token "}", delete this token

Suffice to say, there is no such token.

Obviously this is a bug, but what do I do? My code won't compile as a result.

like image 545
yuttadhammo Avatar asked Jul 16 '12 11:07

yuttadhammo


4 Answers

Most of the answers given didn't help or weren't the problem (Clean in Ran's comment worked, though...). The easiest fix was CTRL+1, then "Clear All Lint Markers".

like image 169
yuttadhammo Avatar answered Sep 18 '22 18:09

yuttadhammo


Save the the file: Ctrl + S

In eclipse menu: Project - > Clean

like image 35
Dmytro Danylyk Avatar answered Sep 19 '22 18:09

Dmytro Danylyk


For me, just cutting the whole line and pasting it back gets rid of the issue.

like image 42
Aviral Avatar answered Sep 18 '22 18:09

Aviral


You can delete the supposedly false compiler errors in the Problems view window, e.g.,delete the supposedly false compiler errors (screen grab)

Confirm deletion even though javac may recreate them:

Confirm deletion even though javac may recreate them (screen grab)

like image 26
emallove Avatar answered Sep 16 '22 18:09

emallove