Home Download Buy Blog Forum Support

Sublimelinter for JavaScript not working

Sublimelinter for JavaScript not working

Postby HyperDrummer on Sat Jan 26, 2013 12:10 am

Hi all,
i'm currently trying to setup Sublimelinter on my Linux machine. It's working for Python but I can't get it working for JavaScript.

I've installed Node.js and set the path mapping correctly. Here are my sublime user settings:

{
"sublimelinter": true,
"javascript_linter": "jshint",
"sublimelinter_executable_map":
{
"javascript": "/usr/bin/nodejs"
}
}

In the console I can see the following:
SublimeLinter: javascript enabled (using node.js)

But even though nothing is outlined for any syntax errors.
Can someone help me?

Thanks in advance
HyperDrummer
 
Posts: 2
Joined: Sat Jan 26, 2013 12:05 am

Re: Sublimelinter for JavaScript not working

Postby happyface on Sun Jan 27, 2013 3:39 am

See https://github.com/SublimeLinter/Sublim ... leshooting

If it's not displaying linting errors, that means it's not trying to lint.

PS: By any chance do you have the SetDjangoSyntax package installed?
happyface
 
Posts: 4
Joined: Fri Jan 18, 2013 1:04 am

Re: Sublimelinter for JavaScript not working

Postby HyperDrummer on Mon Jan 28, 2013 8:28 am

Thanks for your help! It is very much appreciated.
The SetDjangoSyntax package is not being installed.

I checked the troubeshooting guide and it says:
The first time a linter is asked to lint, it will check to see if it can be enabled. You will then see messages like this:
SublimeLinter: JavaScript enabled (using JavaScriptCore)


I see such a message in my console:
SublimeLinter: javascript enabled (using node.js)


So I'd say that it tries to lint but nothing happens. Any other hints?
HyperDrummer
 
Posts: 2
Joined: Sat Jan 26, 2013 12:05 am

Re: Sublimelinter for JavaScript not working

Postby haaiee on Mon Feb 25, 2013 12:13 pm

Try this, it worked for me:

"javascript_linter": "jslint"

(and restart Sublime Text)
haaiee
 
Posts: 1
Joined: Mon Feb 25, 2013 12:11 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 11 guests