Sie sind auf Seite 1von 4

Take the 2-minute tour !

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
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no
registration required.
Eclipse kepler - Disable javascript validation
sign up log in tour help careers 2.0

java - Eclipse kepler - Disable javascript validation - Stack Ov... http://stackoverow.com/questions/17329028/eclipse-kepler-d...
1 of 4 09/09/14 12:41 pm
jan
467 1 5 29
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:
java javascript eclipse validation
edited Jun 26 '13 at 23:10 asked Jun 26 '13 at 19:42
java - Eclipse kepler - Disable javascript validation - Stack Ov... http://stackoverow.com/questions/17329028/eclipse-kepler-d...
2 of 4 09/09/14 12:41 pm
8 Answers
pinoyyid
3,924 2 8 36
Jim Garrison
40.5k 9 47 84
Lavie Tobey
152 1 8
djw
41 2
user2706507
1
I think eclipse.org/pdt/help/html/setting_the_javascript_build_path.htm should work for you ! dShringi Jan 30
at 5:35
You can go Project properties/Javascript/Include Path/source and exclude the third party components.
answered Jul 9 '13 at 14:27
I think this i not valid for the new kepler version, is it? I didn't find that option. jan Jul 10 '13 at 18:14
it's there in my Kepler pinoyyid Jul 10 '13 at 21:38
I see it in my kepler eclipse, yet I don't understand what you mean by !"#$% '($!) *+,'+-.-!/ I see
01234*$#'! 56#7%!89- :#;$($) and <(=(4*$#'! >.; ?$+@.*! /6''+$! . are they the third party ones?
Allan Ruin Mar 14 at 3:07
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. pinoyyid Mar 14 at 7:46
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.
answered Jun 26 '13 at 22:59
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".
answered Jun 26 '13 at 20:21
For me this has no effect as well jan Jun 26 '13 at 20:38
have you tried a clean and "validate"? there is a validate option in the right-click context menu. Lavie Tobey
Jun 26 '13 at 20:46
Yes I tried that! Doesn't work for me. jan Jun 26 '13 at 21:03
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. Kevin Oct 30 '13 at 13:16
Doesn't work for me (using Juno) Lluis Martinez Mar 26 at 11:16
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.
answered Jul 31 '13 at 9:28
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 ;)
answered Aug 22 '13 at 8:23
java - Eclipse kepler - Disable javascript validation - Stack Ov... http://stackoverow.com/questions/17329028/eclipse-kepler-d...
3 of 4 09/09/14 12:41 pm
Chris
43 5
Nair
1
PForsberg
11 1
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.
answered Aug 29 '13 at 23:58
Try this: Open the .project in notepad and remove the javascript validator
answered Jan 31 at 19:04
This is not an answer, and should be added as a comment. Steve H. Jan 31 at 19:26
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.
answered Jul 28 at 11:43
Not the answer you're looking for? Browse other questions tagged java javascript
eclipse validation or ask your own question.
java - Eclipse kepler - Disable javascript validation - Stack Ov... http://stackoverow.com/questions/17329028/eclipse-kepler-d...
4 of 4 09/09/14 12:41 pm

Das könnte Ihnen auch gefallen