Home Download Buy Blog Forum Support

Error with Git and Sublime

Error with Git and Sublime

Postby dbhurley on Thu Jun 07, 2012 1:44 am

Hey guys, first post here. Been using Sublime for about 3 months and absolutely loving it. It's been a fantastic tool and I've got the Package Installer in place and I've installed kemayo Git through there to connect to my github repo's. Everything was working swimmingly for several months and then all of a sudden I got a message that Git was not found in my path which it then kindly output for me to view. I checked and double-checked my settings. Running "git" from terminal shows that it is indeed available. Printing my PATH variable in terminal yields the following:

Code: Select all
/usr/local/git/bin/git:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin/git:/usr/local/git/bin/


I edited the git.sublime_settings file. and manually set my git path to:

Code: Select all
/usr/local/git/bin/git


And then attempted it again. This time I watched the bottom of my screen and saw that it called my git command (after entering git: pull from CMD+SHIFT+P) but then after several seconds just went away. No error, no message, nothing.

I've been worrying with this thing for almost a week now editing my ~/.profile, ~/.bash_profile and every other file I can find. At this point I've removed the path to git that I hardcoded into my settings (reset it to "false") and still get the same delay of several seconds and then nothing.

I used CTRL+~ to watch for errors and see the following occur:

Code: Select all
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner
  File "./git.py", line 109, in run
OSError: [Errno 20] Not a directory


I'm at wits end and have spent hours on Google and elsewhere. Please if someone knows and can help I would be forever grateful.

Thanks!
David
dbhurley
 
Posts: 2
Joined: Thu Jun 07, 2012 1:33 am

Re: Error with Git and Sublime

Postby dbhurley on Thu Jun 07, 2012 2:31 am

If I edit git.py and echo my

Code: Select all
os.environ['PATH'])


I am given this:

Code: Select all
PATH is: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin/git


So I am thinking the problem is that my path has /usr/local/git/bin/git instead of /usr/local/git/bin ??

I'm not sure where to change my GUI PATH variable though

Thanks,
David
dbhurley
 
Posts: 2
Joined: Thu Jun 07, 2012 1:33 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], jklingen, Yahoo [Bot] and 30 guests