[TxMt] Textmate not working with RVM despite PATH variables

Patrick Minton patrick.minton at gmail.com
Mon Dec 6 20:42:29 UTC 2010


Hi all,

A quick search of both Google and this lists' archive didn't solve this for me so I am wondering if anyone here has an idea.

I use RVM and Textmate.  I followed the instructions at:

http://rvm.beginrescueend.com/integration/textmate/ 

(including moving the builder.rb in /Applications/TextMate.app/Contents/SharedSupport/Support/lib/)

However, I still get "env: ruby: No such file or directory" from Textmate.  Using env from the command line works fine:

mbpatrick:~ patrick$ /usr/bin/env ruby -v
ruby 1.8.6 (2010-02-05 patchlevel 399) [i686-darwin10.4.0]
mbpatrick:~ patrick$ sudo ln -s /usr/bin/env /usr/local/bin/env 
Password:
mbpatrick:~ patrick$ /usr/local/bin/env ruby -v
ruby 1.8.6 (2010-02-05 patchlevel 399) [i686-darwin10.4.0]

And my textmate_ruby script works fine:

mbpatrick:~ patrick$ /Users/patrick/.rvm/bin/textmate_ruby -v
ruby 1.8.6 (2010-02-05 patchlevel 399) [i686-darwin10.4.0]
mbpatrick:~ patrick$ 

My shell variables in Textmate:

TM_RUBY    /Users/patrick/.rvm/bin/textmate_ruby
PATH       /usr/bin:/bin:/usr/sbin:/sbin

I've quit Textmate and restarted, quit shells and restarted, I've tried putting /Users/patrick/.rvm/bin in my PATH (in TextMate), I've tried putting /Users/patrick/.rvm/rubies/ruby-1.8.6-p399/bin/ in my PATH (in Textmate), I  updated Textmate and all it's bundles to the newest versions, nothing seems to work.

I am curious why TextMate is using env at all given that TM_RUBY is set...

Anyone have any ideas?  Would appreciate any help.

Patrick


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20101206/30e48f83/attachment.html>


More information about the textmate mailing list