Please consider editing your post and mark it as obsolete instead. Do you want to delete post?
PhpStorm 3.0 and JsLint
Permanently deleted user
Created
In inpection setting I saw JSLint validation, but when I am trying to enable it, it doesn't working. As I can understand, it should hightlight JSLint errors?
So if internal validator doesn't see any fatal errors in file, JsLink check is running? In my case there was no fatal errors, but JsLink check wasn't running. Is there a way to run JsLint check in any case?
Yep, PhpStorm runs JSLint (if the inspection is enabled) once we have no fatal problems in file. We will have a blog post about it shortly.
So if internal validator doesn't see any fatal errors in file, JsLink check is running? In my case there was no fatal errors, but JsLink check wasn't running.
Is there a way to run JsLint check in any case?
Please provide exact snippet that does not trigger JSLint validation checks.
FYI
http://blog.jetbrains.com/webide/2011/12/how-to-lint-your-javascript-with-jslint-in-real-time/
Well, here's one. We use Prototype extensively. With Assuem PrototypeJS is DISABLED, this should throw a warning of $ is undefined, correct?
$('MainUI_' + $sTabType + 'Table').show();
It doesn't.
Or Tolerate != and == is disabled and this should throw a warning, correct?
if(typeof($vArg3) == 'undefined'){
It doesn't.
I agree with Bogdan. I don't think it's working at all.
For example:
Running jshint via command line:
But PHPStorm says: "No suspicious code found".
JSLink checkbox is checked in Inspections and "Use JSHint instead of JSLink" is checked too.
PhpStorm build 111.19
OS: ArchLinux
PhpStorm 3.0 produces error about "Too many var statements" under Windows.
What is your JDK?
Sun's (Oracle) JDK 1.7.0
PhpStorm 3.0 does not undergo much testing on JDK 1.7, please check if the feature works with JDK 1.6 (we use library from JDK to run JSLint / JSHint)
what is your JDK version?
Ah, I am on 1.7.0_01
It doesn't matter to me what version I run. Should I downgrade to JDK 1.6? Is that tricky or can I just uninstall and reinstall?
Works with JDK 1.6
We will fix this bug in 3.0.1, in the meaning time if you really need this functionality you can install JDK 1.6 and run PhpStorm with it