Eclipse kepler - Disable javascript validation
Solution 1
You can go Project properties/Javascript/Include Path/source and exclude the third party components.
Solution 2
There are two places you have to look. You have found the first. The second is in each project's Properties dialog, accessed by right-clicking on the project in Package Explorer and selecting "Properties". There, under Builders you may find a "Javascript Validation" entry, which you must disable.
You have to do this for every project that contains a Javascript Validation builder.
Solution 3
Try this: Open the .project in notepad and remove the javascript validator
Comments
-
jan almost 4 years
I just installed the new eclipse kepler (eclipse 4.3). It shows me hundreds of errors and warnings from third party javascript libraries.
I tried to disable the javasscript validation completely by unchecking "Enable JavaScript semantic validation" in "Preferences/JavaScript/Validator", but with no effect - Errors and warnings are still shown.
Is there another option to disable them or is this just a bug?
Can other people confirm this issue or is it just me? :)
Edit 1: Lavie Tobey pointed out, i should set all validations to "ignore" -> did not help
Edit 2: Jim Garrison pointed out, i should disable the builder for the projects -> Actually I don't have a javascript builder in there. Disabled for testing purposes all of them, but did not help:
-
jan almost 11 yearsFor me this has no effect as well
-
Lavie Tobey almost 11 yearshave you tried a clean and "validate"? there is a validate option in the right-click context menu.
-
jan almost 11 yearsI think this i not valid for the new kepler version, is it? I didn't find that option.
-
Kevin over 10 yearsYou have to select the errors in the output window and DELETE them. I know this sounds stupid, how can you delete and error without fixing it? Once you delete them then you can rerun the build and they will be gone. Until then Eclipse caches them and will not remove them.
-
Steve H. over 10 yearsThis is not an answer, and should be added as a comment.
-
Allan Ruin about 10 yearsI see it in my kepler eclipse, yet I don't understand what you mean by
third party components
I seeECMAScript Buildt-In Library
andJavaScript Web Project support
. are they the third party ones? -
pinoyyid about 10 yearsThe OP was suffering from errors for third party javascript libraries within his project. He needed to individually exclude them from validation. It's normal to install libraries under a common sub-directory (eg. components), so then it's easy to exclude the whole components tree from validation.