A
A
Andrew2015-04-18 19:22:01
Programming
Andrew, 2015-04-18 19:22:01

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
    }
}

(Setting - User)
{
    "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
    }
}

Operating system - Ubuntu 14.04.
Please tell me what I did wrong.
Thank you for your time.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2015-04-19
@Ashlst

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

node.js - v.0.10.37
npm - v.1.4.28
jshint - v.2.7.0

W
web-mechanic, 2015-07-11
@amfetamine

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 question

Ask a Question

731 491 924 answers to any question