Eclipse kepler - Disable javascript validation

26,412

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

Share:
26,412
jan
Author by

jan

A Senior Development Engineer based in Mannheim, Germany.

Updated on July 29, 2020

Comments

  • jan
    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?

    enter image description here

    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

    enter image description here

    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:

    enter image description here

  • jan
    jan almost 11 years
    For me this has no effect as well
  • Lavie Tobey
    Lavie Tobey almost 11 years
    have you tried a clean and "validate"? there is a validate option in the right-click context menu.
  • jan
    jan almost 11 years
    I think this i not valid for the new kepler version, is it? I didn't find that option.
  • Kevin
    Kevin over 10 years
    You 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.
    Steve H. over 10 years
    This is not an answer, and should be added as a comment.
  • Allan Ruin
    Allan Ruin about 10 years
    I see it in my kepler eclipse, yet I don't understand what you mean by third party components I see ECMAScript Buildt-In Library and JavaScript Web Project support. are they the third party ones?
  • pinoyyid
    pinoyyid about 10 years
    The 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.