tpope / vim-rvm

rvm.vim: Switch Ruby versions from inside Vim
http://www.vim.org/scripts/script.php?script_id=4269
117 stars 5 forks source link

:Rvm use no longer parses the .rvmrc correctly #1

Closed thedelchop closed 12 years ago

thedelchop commented 12 years ago

Recently I upgraded to rvm v 1.9.2 and it appears that RVM can no longer parse the .rvmrc file. I only get 'Ruby version not installed :Rvm install system'.

However, if run ':Rvm use 1.9.3-p0@my_gemset' it works just fine. I would be happy to help troubleshoot if I could get a quick 5 min explanation on how :Rvm use tries to parse the .rvmrc file.

tpope commented 12 years ago

It uses rvm tools path-identifier /path. And it works just fine for me on 1.9.2. I did find and fix an edge case around the system Ruby, if you want to try again.

thedelchop commented 12 years ago

Ok Tim, I'll try that. Thank you very much.

tpope commented 12 years ago

Weirdly, now it's (silently) failing for me. And it looks like rvm tools path-identifier is to blame. Sigh. I'll have to look into this more later.

tpope commented 12 years ago

rvm get head again fixed it. I'm considering this resolved.

thedelchop commented 12 years ago

You're right, updating rvm did fix it. Thank you very much.

dhruvasagar commented 11 years ago

rvm tools path-identifier is messing things again for me, using rvm v 1.17.9,

rvm tools path-identifier app/controllers

returns the path first and the ruby version on the next line.

rvm tools identifier app/controllers

seems to be the right choice now.

tpope commented 10 years ago

I'm not an active rvm user any more, but I'll merge a patch that does the right thing.