Closed DoubleCouponDay closed 5 years ago
@DoubleCouponDay Thanks for reporting this. Could you also include this information?
npm config get prefix
and npm ls -g --depth=0
visual studio code version: 1.25.1
jshint extension version: 0.10.19
jshint global version: 2.9.5
npmconfig get prefix
: C:\Users\sjsui\AppData\Roaming\npm
npm ls -g --depth=0
:
+-- @warriorjs/cli@0.5.1
+-- babel-cli@6.26.0
+-- babel-eslint@8.2.2
+-- babel-preset-env@1.7.0
+-- browserify@16.2.2
+-- brunch@2.10.12
+-- eslint@5.0.1
+-- eslint-config-defaults@9.0.0
+-- eslint-plugin-react@7.10.0
+-- grunt-cli@1.2.0
+-- grunt-steal@1.0.0
+-- jasmine@3.0.0
+-- jshint@2.9.5
+-- jslint@0.12.0
+-- npm@6.2.0
+-- parcel-bundler@1.8.1
+-- tslint@5.10.0
+-- typescript@2.9.2
`-- uglify-js@3.4.2
error message:
output window:
Same error here. (Its a fresh windows installation)
My infos : VSCode version 1.27.2 JSHint Extension version: 0.10.20 JSHint Global version: 2.9.6
npm config get prefix
: C:\Users\tcgenc\Applications\node
npm ls -g --depth=0
:
C:\Users\tcgenc\Applications\node +-- jshint@2.9.6 +-- lma@1.0.2 -> C:\Users\tcgenc\Repos\ls-for-win +-- npm@6.4.1 +-- path-intellisense@1.4.2 -> C:\Users\tcgenc\.vscode\extensions\christian-kohler.path-intellisense-1.4.2 +-- yarn@1.9.4 `-- yo@2.0.5
Detailed error on logs :
[2018-09-28 08:27:50.980] [renderer1] [error] Request initialize failed with message: missing ) after argument list: Error: Request initialize failed with message: missing ) after argument list at new ResponseError (C:\Users\tcgenc\.vscode\extensions\dbaeumer.jshint-0.10.20\jshint\node_modules\vscode-jsonrpc\lib\messages.js:46:28) at handleResponse (C:\Users\tcgenc\.vscode\extensions\dbaeumer.jshint-0.10.20\jshint\node_modules\vscode-jsonrpc\lib\main.js:430:48) at processMessageQueue (C:\Users\tcgenc\.vscode\extensions\dbaeumer.jshint-0.10.20\jshint\node_modules\vscode-jsonrpc\lib\main.js:258:17) at Immediate._onImmediate (C:\Users\tcgenc\.vscode\extensions\dbaeumer.jshint-0.10.20\jshint\node_modules\vscode-jsonrpc\lib\main.js:242:13) at runCallback (timers.js:789:20) at tryOnImmediate (timers.js:751:5) at processImmediate [as _immediateCallback] (timers.js:722:5)
I solved it. It happens because it cant found node folder path on extension.js:42
. Just set nodePath in jshint settings and its works like a charm.
PS: It cant find my node path because of i installed node on user not system.
this error is produced after restarting vsc with jshint installed, and installing jshint as an npm global.