Open avivrosenberg opened 10 years ago
I wonder if this is due to a recent change in RVM. Anyone else experiencing success or failures? (I don't have an RVM install handy to check at the moment.)
I have experienced exactly the same problem.
@avivrosenberg could you test and feedback me?
Hi @MinasMazar, sorry for the delay, I don't use this plugin anymore so I needed to find the time to remember what this was all about... :) Initially tried to recreate this to test your fix but for some reason I didn't get the error, and in fact nothing else worked either (ruby versions didn't change no mater what I did). So I left it alone for a while until I had the free time to investigate...
Turns out the plugin doesn't work at all under zsh. I moved to zsh a while back and forgot about it, and that's why I couldn't recreate it. Probably this should be a separate issue...
Anyway, I used set shell=bash
in vim and then I was able to recreate this error with a newer RVM (1.26.11).
I tested your pull request and it does indeed fix the problem for me as well. :+1:
Thanks!
Using rvm 1.22.19 (stable), Vim 7.4 (MacVim built by homebrew), latest vim-rvm. My .bash_profile, .profile and .bashrc are configured similar to what they are after
rvm get stable --auto-dotfiles
. In the terminal, RVM works great.Heres a screenshot with the dotfiles:![screenshot 2013-10-09 19 29 11](https://f.cloud.github.com/assets/75639/1300579/4112f2bc-3114-11e3-94c3-1ba81e74ae46.png)
The issue
After I change the ruby version once, the PATH gets mangled and RVM refuses to behave. Attempting to change the ruby version again produces an error.
Steps to reproduce
produces:
ruby-2.0.0-p247
, which is the default. So far so good.produces this warning:
produces a nasty error:
Things I've tried
rvm get stable --auto-dotfiles
to use the default dotfile configuration without any other modifications on my part. Same error.set shell=bash\ --login
. This causes vim-rvm to not work at all: it can't even change the ruby version once.Thanks for your help and for creating so many awesome vim plugins.