eclipsesource / jshint-eclipse

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

ClassCastException #52

Closed machineghost closed 11 years ago

machineghost commented 11 years ago

With a fresh install of Eclipse (on Linux), and no other plug-ins except the JS and Web ones, I get the following errors, intermittently:

Errors occurred during the build. Errors running builder 'JavaScript Validator' on project 'syapse'. java.lang.ClassCastException

Errors occurred during the build. Errors running builder 'JavaScript Validator' on project 'syapse'. org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding cannot be cast to org.eclipse.wst.jsdt.internal.compiler.lookup.LocalVariableBinding

I haven't yet noticed any pattern for whether I get an error, or which error I get; they both just randomly appear after I save and the JSHint validator is triggered.

Any thoughts on what might be going wrong, or how I could provide further debugging info?

machineghost commented 11 years ago

sigh I hate Eclipse sometimes. I tried removing the JSHint plug-in, and I still got the above error, so it actually appears to be a problem with the core Eclipse JS plug-in (although to be fair the problem didn't start until after I installed JSHint, but I guess the timing might have been a coincidence).

I'm going to re-install Eclipse and try again as soon as I have some time (and then based on how that goes I'll either report back here or close this ticket).

machineghost commented 11 years ago

Well, I re-installed Eclipse AND re-created my project (the latter of which turned out to be the key part). Once I did this, and re-installed JSHint, it finally started working as expected.

So Eclipse is really, really annoying sometimes, but there appears to be no issue with JSHint.

ralfstx commented 11 years ago

Thanks for verifying this!