SublimeLinter 3 Not Working
Asked Answered
G

2

7

I've been having some problems with SublimeLinter3. I recently installed JSHint and Sublime Linter 3 with my package control, and when I manually use JSHint from the command palette it works fine. However, my SublimeLinter isn't doing anything. Shouldn't it provide instant visual feedback when i type errors and save a file? Any help would be greatly appreciated!

Gaspar answered 26/4, 2014 at 18:47 Comment(0)
S
5

Make sure that you installed the SublimeLinter-jshint package, and not the one just named JSHint, as it doesn't work with SublimeLinter. Also, make sure you've completely read through the SublimeLinter documentation so that everything is set up correctly.

Surfeit answered 26/4, 2014 at 20:25 Comment(2)
Hey, I've managed to solve the problem. For some reason, npm install -g jshint was not working for me. The problem was fixed when i used sudo npm install -g jshint. While I don't know why I had to do that, I'm just happy it ended up working.Gaspar
i tried many solutions but didn't worked for and now i use github.com/victorporof/Sublime-JSHint in ST3 and problem solved. Once you install plugin CTRL+SHIFT+P and jshint: set plugin options and make this line true "lint_on_save": true and restart STDrucilladrucy
N
1

Have you read the installation documentation ? You have to install jshint using Node.js

If you have done every steps, take a look at Tools > SublimeLinter > Lint Mode. "Background" should be selected if you want a syntax check as you are typing.

You can also try to make some errors and press CTRL+K and then A to show all errors. If you see errors that means jshint is correctly installed and working. If not you have a problem with your installation.

Nightshade answered 28/4, 2014 at 9:30 Comment(1)
Hey, I've managed to solve the problem. For some reason, npm install -g jshint was not working for me. The problem was fixed when i used sudo npm install -g jshint. While I don't know why I had to do that, I'm just happy it ended up working.Gaspar

© 2022 - 2024 — McMap. All rights reserved.