cyphactor/sublime_guard — Issue #4: Start Guard fails with 'bundle' unknown command when Sublime Text 2 is initially launched from somewhere other than a shell that has bundle in its path.
Author: cyphactor
Created: 2012-01-25 18:45:41+00:00
State: open

It seems that the launching shell's environment is passed onto the Sublime Text 2 instance. So, if Sublime Text 2 isn't running and I have two shells open, one in my home directory, and on in my project directory. If I launch Sublime Text 2 from my home directory shell using subl and then load another Sublime Text 2 window from my project directory shell and try to Start Guard it will fail saying it can't find the command 'bundle'.

If I kill Sublime Text 2 so no instances are up and go straight to the project directory and launch the initial instance from the project directory Start Guard works as expected.