Reputation: 881
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.
Upvotes: 70
Views: 61745
Reputation: 31
To disable validators in your project or workspace, complete the following steps:
Optional: You can also change the following check box options on this page:
Then Click OK.
If you want to set individual validation settings for one or more of your projects, see Overriding global validation preferences
Upvotes: 2
Reputation: 41
I was facing same problem but i am able to remove these errors.
Upvotes: 4
Reputation: 169
Go to Window -> Show View -> Problems and delete error marker(s) on right mouse-click
Upvotes: 14
Reputation: 7110
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]
Upvotes: 18
Reputation: 41
In case you select and delete more than 100 problems and eclipse only deletes up to 100 problems, check the "Configuration Contents..." menu. This menu is the top-right of the problems tab. There is a small triangle drop down menu containing the configuration. In that menu, there is a "Use limits" checkbox which you should uncheck to be able to dleete all problems at once.
Upvotes: 4
Reputation: 45576
You probably want to exclude some third party libraries (such as jquery-1.x.min.js) from being validated by your project.
In this answer I've documented how to disable it for specific sources -> How do I remove javascript validation from my eclipse project?
I'll just repeat the steps here:
Source
tab. ( It looks identical to Java Build Path Source tab )Excluded
patternEdit
buttonAdd
button next to Exclusion patterns
box.Browse
button to mention the JavaScript source by name.BTW, I think you should never disable validation for sources that you are in control of (i.e. coded by yourself or your team).
Upvotes: 5
Reputation: 31579
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.)
Upvotes: 117