jan
jan

Reputation: 4053

Eclipse kepler - Disable javascript validation

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

Upvotes: 16

Views: 26499

Answers (8)

PForsberg
PForsberg

Reputation: 11

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.

Upvotes: 0

Nair
Nair

Reputation: 11

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

Upvotes: 1

Chris
Chris

Reputation: 175

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.

Upvotes: 0

J.Mengelle
J.Mengelle

Reputation: 341

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 ;)

Upvotes: 0

djw
djw

Reputation: 131

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.

Upvotes: 0

pinoyyid
pinoyyid

Reputation: 22296

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

Upvotes: 23

Jim Garrison
Jim Garrison

Reputation: 86774

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.

Upvotes: 11

Lavie Tobey
Lavie Tobey

Reputation: 514

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".

Upvotes: 0

Related Questions