Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems in getting SublimeLinter to work

Tags:

sublimetext2

I need help getting the SublimeLinter to work.

I have installed the SublimeLinter using the package installer. However I cant see the lint working in my js files. Also when I do command + shift + P (linux) I only see the following command for linter 'Sublime Linter : Extract Annotations'.

I don't see the other commands for running the linter.

Any Ideas what is wrong?

Thanks, Murtaza

like image 801
murtaza52 Avatar asked Dec 27 '12 07:12

murtaza52


2 Answers

You have to install nodejs from the repos.

If nodejs isn't installed in /usr/local/bin/node you have to set a symbolic link to this place:

  • touch /usr/local/bin/node
  • ln -s /usr/bin/nodejs /usr/local/bin/node

The above worked for me on debian/crunchbang

Alternatively you can change the sublime user settings for linter(ps haven't tested this option)

"sublimelinter_executable_map":
{
    "javascript": "/usr/bin/nodejs"
}
like image 150
user2246514 Avatar answered Sep 28 '22 01:09

user2246514


Some tips:

  1. Be sure your files are using the Javascript syntax.
  2. The linter runs automatically (check the package settings).
  3. Open the console to see any errors.
  4. Check the documentation to configure Javascript linters
like image 26
aanton Avatar answered Sep 28 '22 00:09

aanton