sublime-closure-linter icon indicating copy to clipboard operation
sublime-closure-linter copied to clipboard

gjslint not found?

Open godbout opened this issue 13 years ago • 11 comments

Can't make it work with the latest beta version of ST2 (haven't tried with old versions). Get the error message:

/bin/sh: gjslint: command not found

godbout avatar Jan 18 '12 08:01 godbout

Same problem. I'm on ST2 build 2165

aar0nr avatar Jan 20 '12 19:01 aar0nr

It seems like the gjslint is not installed on your computer, or can't find in path.

If the gjslint is not included in %PATH, you can specific the path in settings: "gjslint_path": "/path/to/gjslint"

fbzhong avatar Jan 21 '12 14:01 fbzhong

Doh! Thanks :)

aar0nr avatar Jan 23 '12 17:01 aar0nr

Oh alright. I thought that the package was installing it inside his own folder in ST2. Thanks for the answer!

godbout avatar Jan 30 '12 10:01 godbout

I can't set window path (e.g C:\Users\rtrukh\AppData\Roaming\Sublime Text 2\Packages\sublime-closure-linter) to "gjslint_path" param because spaces in path. Error: "The filename, directory name, or volume label syntax is incorrect.". Gjslint is included in %PATH. Any ideas how to fix it?

rtrukhin avatar Feb 01 '12 10:02 rtrukhin

I still haven't tried with installing gjslint but if you need to put the full path, then it's pretty dumb. You should be able to just put the path relative to ST2 and it should work.

godbout avatar Feb 01 '12 11:02 godbout

Hi rtrukhin,

Is your problem fixed?

Otherwise, can you please set the "debug" to true, and then copy the message to me in the Console window (ctrl+`) ?

fbzhong avatar Feb 03 '12 14:02 fbzhong

I can confirm this is still an issue, at least on OS X. By default gjslinter gets installed into /usr/local/bin/, and it looks like the plugin can't find it there. I can run gjslint from the shell. Creating a symlink in /usr/bin/ solved the issue.

gaearon avatar Feb 16 '12 01:02 gaearon

I just hardcode the default path of gjslint to "/usr/bin/gjslint", which prevent search gjslint in path.

Let me fix that issue later.

fbzhong avatar Mar 02 '12 07:03 fbzhong

I had the same issue. I looked in the readme for sublimelinter, and it had me check if the closure linter (gjslint) was installed. I ran the code on the page, and it worked in sublime the next time I ran it.

See: https://developers.google.com/closure/utilities/docs/linter_howto

and run this in terminal:

sudo easy_install http://closure-linter.googlecode.com/files/closure_linter-latest.tar.gz

Works great now Sublime Text 2 Beta build 2181

spacerockzero avatar Apr 17 '12 19:04 spacerockzero

i had same problem. ( mac osx 10.7 lion) but it worked by setting "gjslint_path" at menu of [Sublime Text 2] - [Preferences] - [Package Settings] - [Closure Linter] - [Settings - User]

reference: https://github.com/fbzhong/sublime-closure-linter/blob/master/sublime-closure-linter.sublime-settings

magnet88jp avatar Oct 16 '12 04:10 magnet88jp