eclipsesource / jshint-eclipse

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

JSHint not working in Eclipse Mars #116

Closed micronaut closed 8 years ago

micronaut commented 8 years ago

We installed the plugin in Eclipse Luna and Mars, and have configured it to look at a single JS file to see if we can get it to work. We have enabled JSHint violations and added several types of violations, but no warnings/errors appear in the JavaScript editor.
Is there some way we can tell if the plugin is not running for some reason? We looked at the Eclipse .log file, but nothing appears related to plugin failure. Is there a way to trigger the validation of the JS file manually, or is it supposed to be live as you edit?

Thanks!

paulvi commented 8 years ago

Please ask on stackoverflow.com and add link here

ralfstx commented 8 years ago

It's working for me with Mars. Note that you have to enable jshint per project, in the project properties.

micronaut commented 8 years ago

We have enabled it for the project, and are trying to lint a single file. Is this supposed to be triggered as we save the files, or do we have to trigger the lint somehow? Is there any type of logging we can look at for the plugin?

ralfstx commented 8 years ago

Yes, files are linted on save. There's no debug logging but in case of problems you should find something in the error log (Open Problems View).

micronaut commented 8 years ago

I created a separate small project and the plugin works fine. We have several hundred JS files in our project, so maybe it is the size of the project. Thanks for your help.

micronaut commented 8 years ago

It turns out that it was a bug with Eclipse that was causing the build process to go into an infinite loop before it could execute the JSHint. Bug report Thanks again for your help. Eric