Sublime Forum

Sublimelinter for JavaScript not working

#1

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

0 Likes

SublimeLinter background linting: only python
#2

See 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?

0 Likes

#3

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

I checked the troubeshooting guide and it says:

[quote]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)[/quote]

I see such a message in my console:

So I’d say that it tries to lint but nothing happens. Any other hints?

0 Likes

#4

Try this, it worked for me:

“javascript_linter”: “jslint”

(and restart Sublime Text)

0 Likes

#5

Where did you put this line, in your user settings for sublime, or the user settings for the SublimeLinter plugin?

0 Likes

#6

The setting is outdated (2013) and SL has been rewritten since.

Documentation for the new setting is available here: https://sublimelinter.readthedocs.org/en/latest/global_settings.html#syntax-map

0 Likes