Newbie: couldn't find svn

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Newbie: couldn't find svn

Jean Michel Esnault
Hi,


Just installed textmate and was trying to use svn bundle.
I got following error:

Couldn't find svn

If you have installed svn, then you need to either update your PATH  
or set the TM_SVN shell variable (e.g. in Preferences / Advanced)

Locations searched:

/Applications/TextMate.app/Contents/SharedSupport/Support/bin/
CocoaDialog.app/Contents/MacOS
/bin
/sbin
/usr/bin
/usr/sbin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin
======================================================

I have checked I have /usr/local/bin in my PATH
and I have also set TM_SVN (just in case) as followed:

$ set | grep PATH
PATH=/usr/local/bin:/usr/local/sbin:/sw/bin:/sw/sbin:/usr/local/bin:/
usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/
local/pgsql/bin:/usr/local/pgsql/bin

$ set | grep TM_SVN
TM_SVN=/usr/local/bin
$

$ which svn
/usr/local/bin/svn


What am I missing ?

Thanks
Jean-Michel


______________________________________________________________________
For new threads USE THIS: [hidden email]
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
Reply | Threaded
Open this post in threaded view
|

Re: Newbie: couldn't find svn

jeanpierre-2
On 1/14/07, Jean Michel Esnault <[hidden email]> wrote:
Hi,


Just installed textmate and was trying to use svn bundle.
I got following error:

Couldn't find svn

If you have installed svn, then you need to either update your PATH
or set the TM_SVN shell variable ( e.g. in Preferences / Advanced)

Locations searched:

/Applications/TextMate.app/Contents/SharedSupport/Support/bin/
CocoaDialog.app/Contents/MacOS
/bin
/sbin
/usr/bin
/usr/sbin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin
======================================================

I have checked I have /usr/local/bin in my PATH
and I have also set TM_SVN (just in case) as followed:

$ set | grep PATH
PATH=/usr/local/bin:/usr/local/sbin:/sw/bin:/sw/sbin:/usr/local/bin:/
usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/
local/pgsql/bin:/usr/local/pgsql/bin

$ set | grep TM_SVN
TM_SVN=/usr/local/bin
$

$ which svn
/usr/local/bin/svn


What am I missing ?

unfortunately textmate does not absorb the user's shell environment (at least for non-bash users no?), so while you can access the subversion binary in the terminal and it can easily be found in your PATH, textmate doesn't know anything about it. instead textmates (as all mac os x applications do) takes the settings defined in ~/.MacOSX/environment.plist
  <a href="http://macromates.com/textmate/manual/shell_commands" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://macromates.com/textmate/manual/shell_commands

also worth noting, i think a restart (logout?) is necessary before those values spring into action.

alternatively, you could set the textmate specific environment variable TM_SVN to point to your subversion. since textmate doesn't read your shell you will need to define it in environment.plist or you can set this directly in textmate: Preferences > Advanced > Shell Variables.

i still wonder why textmate doesn't get adventurous and init its environment based on the user's shell preference - but as i have said before i don't understand the hurdles involved so it is easy for me to suggest.

cheers,
jean-pierre


______________________________________________________________________
For new threads USE THIS: [hidden email]
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
Reply | Threaded
Open this post in threaded view
|

Re: Newbie: couldn't find svn

Charilaos Skiadas
On Jan 14, 2007, at 10:39 PM, [hidden email] wrote:

> alternatively, you could set the textmate specific environment  
> variable TM_SVN to point to your subversion. since textmate doesn't  
> read your shell you will need to define it in environment.plist or  
> you can set this directly in textmate: Preferences > Advanced >  
> Shell Variables.

Setting TM_SVN via the Preferences > Advanced > Shell Variables route  
is definitely the way to go.

Haris



______________________________________________________________________
For new threads USE THIS: [hidden email]
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
Reply | Threaded
Open this post in threaded view
|

Re: Newbie: couldn't find svn

Jean Michel Esnault
In reply to this post by Jean Michel Esnault

Thanks to all.
Just set TM_SVN using the suggested method and it worked right then,  
i.e. did not have to reload.

Jean-Michel


> On Jan 14, 2007, at 10:39 PM, [hidden email] wrote:
>
>> alternatively, you could set the textmate specific environment  
>> variable TM_SVN to point to your subversion. since textmate  
>> doesn't read your shell you will need to define it in  
>> environment.plist or you can set this directly in textmate:  
>> Preferences > Advanced > Shell Variables.
>
> Setting TM_SVN via the Preferences > Advanced > Shell Variables  
> route is definitely the way to go.
>
> Haris
>


______________________________________________________________________
For new threads USE THIS: [hidden email]
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
Reply | Threaded
Open this post in threaded view
|

Re: Newbie: couldn't find svn

Jacob Rus-2
In reply to this post by Jean Michel Esnault
Jean Michel Esnault wrote:
> Just installed textmate and was trying to use svn bundle.
> I got following error:
>
> Couldn't find svn

Where do you set the $PATH?  I most of my $PATH in /etc/profile, and
TextMate finds svn just fine.


______________________________________________________________________
For new threads USE THIS: [hidden email]
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate