Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Linter not working in Windows

Tags:

sublimetext2

As the title says.
The linter doesnt seem to work at all for me in Windows. I have tried it with javascript and php files with the correct syntax set.
Im following Jeffery Ways tutorial here -> https://tutsplus.com/lesson/sublime-linter/

I have installed package control, SublimeLinter and nothing, removed it installed sublimelinter beta and nothing too.

Any help please

like image 380
Pierce McGeough Avatar asked Jan 12 '13 14:01

Pierce McGeough


3 Answers

From SublimeLinter's github page:

"If you plan to edit files that use a Javascript-based linter (Javascript, CSS), your system must have a Javascript engine installed... On Windows, you must install the Javascript engine Node.js, which can be downloaded from the Node.js site."

Node.js

Install it like a normal Windows application. Close Sublime and restart. Linting should be working.

like image 124
d_rail Avatar answered Oct 22 '22 13:10

d_rail


You need to point the SublimeLinter to your PHP executable file in the SublimeLinter.sublime-settings.

Change this option:

"sublimelinter_executable_map":
{
    "php": "C:\\wamp\\bin\\php\\php5.3.13\\php.exe"
},

Edit:

See this link for more help

http://fuzzytolerance.info/blog/2012/05/14/2012-05-15-getting-sublimelinter-running-on-windows/

like image 27
DaShortLife Avatar answered Oct 22 '22 14:10

DaShortLife


In order to get SublimeLint linting js files, I had to follow the instructions here and install this additional plugin:

(I didn't need to follow the 'Linter configuration' step)

https://github.com/SublimeLinter/SublimeLinter-jshint#linter-installation

like image 35
eikumbokum Avatar answered Oct 22 '22 14:10

eikumbokum