Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SublimeLinter could not determine shell PATH

Here's the error message I get each time I start Sublime Text:

SublimeLinter could not determine your shell PATH. It is unlikely that any linters will work.

Please see the troubleshooting guide for info on how to debug PATH problems.

I'm running Sublime Text 3 on Ubuntu 12.04.

How can I overcome this error?

like image 806
Aniket Suryavanshi Avatar asked Jan 10 '14 08:01

Aniket Suryavanshi


3 Answers

I had the same problem, and after I add an empty ~/.bash_profile, it was resolved.

Hope it can help you.

like image 184
feiyuw Avatar answered Oct 08 '22 03:10

feiyuw


None of the solutions above worked for me, and here is what I did:

  1. Press command + shift + p or ctrl + shift +p and enter "sublimelinter settings" and select SublimeLinter Settings - User
  2. Scroll down until you see the paths section, here is mine:
    "paths": {
         "linux": [],
         "osx": 
               "/Users/cheng/.nvm/versions/node/v5.6.0/bin/",
               "/usr/local/bin/",
               "/bin/"
         ],
         "windows": []
     },

I have many different versions of node and python installed on my machine, so I just specify which version of those I want to use. Also, the last /bin/ is used when sublimelinter complains about not being able to find the shell path.

like image 42
Cheng Avatar answered Oct 08 '22 05:10

Cheng


I found that upgrading SublimeLinter to version 3.0.35 fixed the problem for me!

like image 37
CambridgeMike Avatar answered Oct 08 '22 04:10

CambridgeMike