Answer the question
In order to leave comments, you need to log in
Why doesn't Sublime Linter highlight errors?
Hello.
There was a small issue with Sublime Text 3, namely its Sublime Linter plugin.
What I did:
- Installed Sublime Linter.
- Installed Sublime Linter - jshint.
- Installed Node.js (v 0.10.25)
- Installed npm (v. 1.3.10)
- Installed the jshint package (sudo npm install -g jshint)
Reloaded the editor, opened the test js file, but no errors were highlighted..SL highlighted No lint errors.
The console didn't show any errors.
Plugin configs:
(Setting - Default)
{
"default": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"mark_style": "outline",
"no_column_highlights_line": false,
"passive_warnings": false,
"paths": {
"linux": [],
"osx": [],
"windows": []
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": false,
"show_marks_in_minimap": true,
"syntax_map": {
"python django": "python",
"html 5": "html",
"html (django)": "html",
"html (rails)": "html",
"php": "html"
},
"warning_color": "DDB700",
"wrap_find": true
}
}
{
"user": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"jshint": {
"@disable": false,
"args": [],
"excludes": []
}
},
"mark_style": "fill",
"no_column_highlights_line": false,
"passive_warnings": false,
"paths": {
"linux": [],
"osx": [],
"windows": []
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": true,
"show_marks_in_minimap": true,
"syntax_map": {
"html (django)": "html",
"html (rails)": "html",
"html 5": "html",
"php": "html",
"python django": "python"
},
"warning_color": "DDB700",
"wrap_find": true
}
}
Answer the question
In order to leave comments, you need to log in
Solution:
Latest stable release from ppa + jshint:
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install python-software-properties python g++ make nodejs
sudo npm install -g jshint
There is a wonderful article on Habré habrahabr.ru/post/262137 , everything works if you follow it. But it's for Windows)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question