murtaza52
murtaza52

Reputation: 47441

Problems in getting SublimeLinter to work

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

Upvotes: 6

Views: 4896

Answers (2)

user2246514
user2246514

Reputation: 21

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

Upvotes: 2

aanton
aanton

Reputation: 5572

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

Upvotes: 1

Related Questions