[TxMt] TextMate 2 and rvm

John Yeates textmate2 at warmvomit.co.uk
Sun Jun 3 10:02:51 UTC 2012


Given the following ruby script:

#!/usr/bin/env ruby

puts RUBY_VERSION

…and that I'm setting TM_RUBY = "/Users/myname/.rvm/bin/ruby-1.9.3-p0 at primes" in the .tm_properties for the project, hitting Cmd-R in the script window shows 1.8.7. Running it from the command-line shows the expected 1.9.3.

Does anybody know what's going on here? It would be lovely to be able to use TM2 with different projects using rvm, and have everything Just Work :)

[Ideally, TM2 should detect that rvm is being used and get the ruby and gemset from the project's .rvmrc, if supplied, or from rvm's defaults otherwise. Even better if the following sequence 'rvm use 1.8.7 --default; rvm use 1.9.3; mate foo' would pick up 1.9.3 from the shell's env rather than using the default.]

-- 
John Yeates



More information about the textmate mailing list