Sublime Text 2 / sublimeLinter: only Python is a real-time background

I have already spent several hours on this with little progress. I am running Sublime Text 2.0.2 with SublimeLinter v1.7 [1]. Real-time Lint Python is beautiful, but for many other languages ​​that I use day after day [Javascript, Ruby, CSS / SCSS, etc.], When saved [2], it will display poorly formed warnings through the console. I tried a number of settings for the executable card. I have:

"sublimelinter_executable_map": { "javascript": "/usr/local/bin/node", "node": "/usr/local/bin/node" }, 

I also had only "javascript": "/ usr / local / bin / node". I also tried using jshint and jslint as the "javascript_linter" option.

The console shows the loading of SublimeLinter and the inclusion of javascript, CSS and Ruby (using node, ruby ​​and node, respectively).

After the inclusion message on the console, I get:

 Traceback (most recent call last): File "./SublimeLinter.py", line 431, in _update_view File "./SublimeLinter.py", line 143, in run_once File "./sublimelinter/modules/base_linter.py", line 291, in run File "./sublimelinter/modules/javascript.py", line 72, in parse_errors ValueError: Error from jslint: util.puts: Use console.log instead 

and

 SublimeLinter: css enabled (using node.js) Traceback (most recent call last): File "./SublimeLinter.py", line 431, in _update_view File "./SublimeLinter.py", line 143, in run_once File "./sublimelinter/modules/base_linter.py", line 291, in run File "./sublimelinter/modules/css.py", line 24, in parse_errors ValueError: Error from csslint: util.puts: Use console.log instead 

This is followed by raw running messages, such as:

 [{"id":"(error)","raw":"Use spaces, not tabs.","evidence":"\t\"published\": \"#444444\",","line":4,"character":1,"reason":"Use spaces, not tabs."},{"id":" (error)","raw":"Expected '{a}' at column {b}, not column {c}.","evidence":"\t\"published\": 

[1] According to https://github.com/SublimeLinter/SublimeLinter/issues/512 I returned to v1.7 to get PEP8 work.

[2] Coffeescript receives a real-time infusion, which is nice.

+6
source share
1 answer
+1
source

Source: https://habr.com/ru/post/955160/


All Articles