eclipsesource / jshint-eclipse

JSHint integration for the Eclipse IDE
http://github.eclipsesource.com/jshint-eclipse/
146 stars 31 forks source link

"File is not a valid JSHint library" in latest JSHint (2.5.10) #102

Closed AlexanderOMara closed 6 years ago

AlexanderOMara commented 9 years ago

Attempting to use the "Provide a custom JSHint library file" preference with jshint.js version 2.5.10 results in the the following error in the dialog.

File is not a valid JSHint library

If I point it at a jshint.js version 2.5.6 I have (not the built-in one) it works, but 2.5.10 results in this error. Note this issue may not be new in 2.5.10, I haven't tried 2.5.7 - 2.5.9.

extdevelopment commented 9 years ago

+1

paulvi commented 9 years ago

:+1:

kevinprotoss commented 9 years ago

+1

bardware commented 9 years ago

recent 2.8.0 doesn't work either :(

Katharsas commented 8 years ago

+1for 2.8.0

pavelhoral commented 8 years ago

Played with this a bit and it is caused by a non-working global scope detection. This can be workarounded if you place var window = this; at the beginning of the JS file (tested with 2.9.0).

All in all this is JSHint vs Rhino integration issue.

paulvi commented 8 years ago

See https://github.com/thallgren/jshint-eclipse/tree/eclipse-mars-and-jshint-2.9.0 and #110