-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rvm.el always defaults to global gemset #27
Comments
rvm currently uses the global gemset as hard coded default. The ruby version is read from your shell configuration. You can also put (rvm-use "ruby-version" "gemset-name") in your emacs configuration and it will active it on load. regarding the first error I'm not sure where the problem lies. Can you evaluate |
I think if I set it in my .init file I will be able to work around this. I should note that the rvm.el that is obtained via ELPA does not have this issue. (rvm/list) outputs ("ruby-1.8.7-p370" "=* ruby-1.9.3-p194") |
@localredhead I see. The one in ELPA is a bit outdated. The output clearly indicates that there is a bug. I'll look at it as soon as I got a few minutes. |
sorry for the horribly delayed response. Do you still experience that problem? What version of rvm and rvm.el are you using? How does the output of a simple |
I do still have to explicitly tell rvm.el which gemset to use, even though I have a default gemset defined. I worked around it by using .rvmrc with the following:
I have tried both ELPA rvm-20121003.921 and rvm.el from your repo. Both seemed to display the same issue. Output of rvm list:
Output of rvm list gemsets:
Output of (rvm-use-default) :
|
I'm on OSX now, whereas before I was on Ubuntu. I doubt that matters much. Allow me to thank you for rvm.el anyways. Without it I'd be lost and I am happy with my work around I have. I've found that using the .rvmrc is a good practice. |
Did you change your installed rubies? In the first description you mentioned:
But when you execute
I'm still trying to figure out where the parsing goes wrong because I'm using the latest version of rvm.el, rvm and everything runs on OS-X. |
Yeah my installed ruby is different now. I am on a different machine than the one I was on when I opened the issue and I stay up to date on my ruby versions. I may be confused as to the intended functionality though - I assume (rvm-use-default) would use what I have set as the default ruby AND gemset combo. Instead (rvm-use-default) uses what the default ruby is, but uses the GLOBAL gemset. |
but this means you no longer receive the original error described in the issue:
regarding the gemset. I don't know of a way to specify a default gemset with rvm (there might be one though...). The current implementation of rvm.el has a variable called Does this solve your problem? (setq rvm--gemset-default "my-default-gemset") |
It doesn't, but thats fine. When I create a gemset with rvm and make it the default, I typically do My goal is to not have to explicitly set my gemset using elisp. I may switch my default gemset when I switch to a new project and because of that I'd want rvm-use-default to pickup that change. I think using the .rvmrc file is the best solution for what I'm going after. You can feel free to close this if you like. I have a work around for what I want by setting my init.el to activate my corresponding ruby using .rvmrc. |
thanks for your time! currently rvm.el only picks up the default ruby version. Closing this for now. Let me know if you are having other problems. |
I installed the latest RVM using el-get as of this morning because of this issue, however now when I try to use rvm-use I get the following error:
Unrecognized command line argument(s): '=* ruby-1.9.3-p194 list' ( see: 'rvm usage' )
It looks like the command is reading in what my system shows about the ruby if I were to issue the rvm command from the terminal.
That issue itself seems minor over the fact that every time I start emacs, I have to tell it to rvm-use and then select my gemset which is already set by RVM but rvm.el does not see it and defaults to @global.
I only have 2 gemsets on my machine and global should never be the default. How do I make rvm.el use what I set as my default within RVM?
I'm on Ubuntu 12.04 LTS using the default terminal and I have added rvm path info to my .bashrc
The text was updated successfully, but these errors were encountered: