RVM + RubyMine 2.0.2 (how to set GEM_HOME?)

RVM support in RubyMine 2.0.2 RC seems good, however it seems to be lacking something fundamental, that is a way to set the GEM_HOME (or maybe I just missed something).

The way I work with RVM is I have gemsets for each environment, and often for each project (defined in .rvmrc). This allows me to have a nice isolated gem environment
http://rvm.beginrescueend.com/gemsets/

For RubyMine 2.0.2, the ideal scenario would be if there was a dropdown that listed out the gemsets (rvm gemset list) and allowed me to select one.

Another solution would be to list all the possible combinations in the ruby dropdown of Ruby + Gemset (the text after the % is the gemset name)

for example:
/User/jc/.rvm/rubies/ruby-1.8.7-p249
/User/jc/.rvm/rubies/ruby-1.8.7-p249%rails3
/User/jc/.rvm/rubies/ruby-1.8.7-p249%rails2
/User/jc/.rvm/rubies/ruby-1.8.7-p249%mongomapper

Please let me know if you need any other info! Unfortunately no way to set GEM_HOME in RubyMine is a blocking issue for me.

Thanks!



Attachment(s):
Screen shot 2010-03-11 at 4.46.28 AM.png
8 comments

i have the same problem. i musst start RubyMine on console to have the correct GEM_HOME. Without i get RubyGem error that rake is not installed.

0

As a workaround you can set GEM_HOME and GEM_PATH environment variables in RubyMine run configurations settings (if you fix default settings - only new run configurations will be affected)

0

http://evan.tiggerpalace.com/articles/2010/01/29/rvm-bundler-rubymine/ - I stumbled upon this post which looks very promising. I will try it tonight.

Thanks,
Rupak

0

Probably better to try our 2.5 EAP builds. RVM+Bundler support is fixed there and you don't need specify this env vars manually.

0

Hi Roman,
   Thanks a lot for the update. I will check tonight. Keep up the good work guys.

Thanks,
Rupak Ganguly

0

HI Roman,
   By the way, the EAP build will honor my existing 2.0.2 licence key, correct? Hope it does. Do I need to uninstall my exisiting 2.0.2 install and then install the 2.5 EAP build or I can just install it over the existing install? Also, will it preserve my settings i.e. code themes, etc.

Thanks,
Rupak Ganguly

0

EAP builds include 30 day free license. Your RM license allow you to install all RM updates released during a year after purchase. As for settings - each Major RM version uses different folders for settings/logs/caches/plugins + ability to import settings from previous RM version.

0

Please sign in to leave a comment.