How do you clear the validation errors in 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 ec开发者_Go百科lipse, tried cleaning all projects but that doesn't clear these validation errors.
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.)
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]
Go to Window -> Show View -> Problems and delete error marker(s) on right mouse-click
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:
- Right click your project
- Select Properties -> JavaScript -> Include
- Path Select
Source
tab. ( It looks identical to Java Build Path Source tab ) - Expand JavaScript source folder
- Highlight
Excluded
pattern - Click
Edit
button - Click
Add
button next toExclusion patterns
box. - You may either type Ant-style wildcard pattern, or click
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).
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.
I was facing same problem but i am able to remove these errors.
- Go to project properties -> validations and click on override validation preferences.
- Click on disable all and Apply changes and click on okay. Let the project built.
- Again go to project properties and change the validation settings as of original.
In Indogo
GO to
Property -> Builder - > Uncheck Validator
To disable validators in your project or workspace, complete the following steps:
- 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. Each validator has a check box to specify whether it is enabled for manual validation or on a build.
Optional: You can also change the following check box options on this page:
- Allow projects to override these preference settings--->Select to set individual validation settings for one or more of your projects.
- Suspend all validators-->Select to prevent validation at the global level. If you select this check box, you can still enable validation at the project level.
Then Click OK.
If you want to set individual validation settings for one or more of your projects, see Overriding global validation preferences
精彩评论