16

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

1

8 Answers 8

23

You can go Project properties/Javascript/Include Path/source and exclude the third party components.

Sign up to request clarification or add additional context in comments.

3 Comments

I think this i not valid for the new kepler version, is it? I didn't find that option.
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?
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.
11

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.

Comments

1

Try this: Open the .project in notepad and remove the javascript validator

1 Comment

This is not an answer, and should be added as a comment.
0

I've found that in previous versions of Eclipse, the only way to really get these to go away is to enable it and change every case to "Ignore".

3 Comments

For me this has no effect as well
have you tried a clean and "validate"? there is a validate option in the right-click context menu.
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.
0

You can switch off (and configure) validation in Preferences/Validation or (for each project) Properties/Validation. However, this doesn't seem to force a cleanup of the messages.

Comments

0

Like it was said : be sure to go to PROJECT properties (right click on project, properties), and not Workspace (Eclipse/preference). I searched like 20 min before hitting myself ;)

Comments

0

I solved this by choosing a PHP profile for my javascript instead. Maybe you don't get the same functionality but for me this profile is just fine. Crashes, hangings & frustration went away.

Comments

0

I had the same issue for XML Validation. I deactivated the validators globally and in the projects itself, nothing worked for me. There wasn't even the slightest hint that anything changed. I even uninstalled XML Editor and Validation Plugins without any effect.

In the end the problem was solved in copy-pasting the XML files with a validation error, deleting the old files and renaming the copies files to the original ones. Somehow Eclipse did not re-validate the old files, but the new ones were okay.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.