rvm not switching back to system ruby when leaving project directory

50 views
Skip to first unread message

ruud144

unread,
Jun 19, 2013, 6:51:16 AM6/19/13
to rubyversi...@googlegroups.com
hi group,

due to problems with an old rvm version, I installed a recent version of rvm. All is working well, however one point is remaining. I cannot find my answer with help of google. I hope you can support me on this one.

- in the old version of rvm, I had a .rvmrc file in all my project directories. Entering a project directory would activate rvm to use the specified ruby and the specified gemset.
- leaving a project directory would make rvm switch back to system ruby. It gave a message like 'now using system ruby'.
- with the currently installed version of rvm this behaviour is changed. When entering a project directory, the same happens as before, but when leaving a project directory (and not having a .rvmrc in the current directory or any of the parent directories), rvm does NOT change back to system ruby. The PATH stays the same and the last  rvm-installed ruby is used when starting ruby.

I assume this is some new rvm feature that I am not aware of. How can I change this back to the old situation?

thanks in advance, Ruud

ruud144

unread,
Jun 25, 2013, 8:41:29 AM6/25/13
to rubyversi...@googlegroups.com
I am using the stable release 1.20.13.
I tried setting rvm_project_rvmrc_default to 1 in a newly created $HOME/.rvmrc, but this had no effect. When I leave a project directory, the ruby of the project stays in the path. Rvm does not switch to system ruby again.

Ruud


ruud144

unread,
Jun 26, 2013, 7:03:20 AM6/26/13
to rubyversi...@googlegroups.com
hi group,

my initial post is based on a wrong observation. The old version of rvm switched back to system ruby and saying so ('now using system ruby'). The stable version does this too, but does this silently AND (this is my confusion) uses one of the rvm-installed rubies as the system ruby.

This means that I was wrong about rvm (sorry); my question is answered hereby and the sun is shining again :)

regards, Ruud



Reply all
Reply to author
Forward
0 new messages