Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you clear the validation errors in Eclipse?

Tags:

eclipse

I accidentally clicked on "Validate" for all of my projects (instead of going to Team > synchronize...) and I have several validation errors and tons of warnings.

I can't figure out how to clear these so it goes back to just having the standard errors.

(One way is to go to "Configure Contents" of the "Problems" view and deselect the validation errors, but I know they're still there, just hidden... it bugs me that they're not actually removed)

I've tried restarting eclipse, tried cleaning all projects but that doesn't clear these validation errors.

like image 795
James Smith Avatar asked Aug 06 '10 02:08

James Smith


People also ask

How do I fix eclipse errors?

The Quick Fix dialog can also be displayed by right clicking on the error item in the Problems view and selecting the Quick Fix menu item.

How do I stop validation in eclipse?

Click Window > Preferences and select Validation in the left pane. The Validation page of the Preferences window lists the validators available in your project and their settings. To disable individual validators, clear the check boxes next to each validator that you want to disable.

What causes validation error?

Validation errors typically occur when a request is malformed -- usually because a field has not been given the correct value type, or the JSON is misformatted.


2 Answers

You should be able to select all the offending markers in the Problems View, right-click and choose Delete from the context menu. Clean-building causes all builders to remove only the markers that they produced, but these markers weren't produced by a builder (you created them through an explicit invocation of the "validate" command.)

like image 88
Tom Crockett Avatar answered Nov 01 '22 17:11

Tom Crockett


I'm not aware of a built-in way to clear them all. You might try deleting the markers file in

[workspace dir]/.metadata/.plugins/org.eclipse.core.resources/.projects/[project name] 
like image 44
takteek Avatar answered Nov 01 '22 16:11

takteek