[TxMt] Re: TextMate 2 and rvm
dipnlik
dipnlik at gmail.com
Sun Jun 3 17:12:31 UTC 2012
For RVM's integration in textmate, please take a look at RVM's
documentation: https://rvm.io/integration/textmate/
While I'm not a TM2 user anymore, the rvm-auto-ruby's approach works
fine for me in TM1, but it only reads .rvmrc files at the project's
root (as opposed to navigating up in the directory tree looking for
other .rvmrc files)
On Sun, Jun 3, 2012 at 7:02 AM, John Yeates <textmate2 at warmvomit.co.uk> wrote:
> 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
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
More information about the textmate
mailing list