Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

gjslint not found? #1

Open
godbout opened this Issue · 11 comments

7 participants

@godbout

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
@aar0nr

Same problem. I'm on ST2 build 2165

@fbzhong
Owner

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"

@aar0nr

Doh! Thanks :)

@godbout

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

@rtrukhin

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?

@godbout

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.

@fbzhong
Owner

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+`) ?

@gaearon

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.

@fbzhong
Owner

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

Let me fix that issue later.

@spacerockzero

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

@magnet88jp

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.