Closed timuckun closed 10 years ago
As I explained in the thread, RubyMine is ignoring GEM_HOME
and GEM_PATH
and insisting on installing gems elsewhere. This breaks chruby's isolation of gems by ruby-version. RubyMine needs to accommodate chruby.
I know this is old, but actually RM isn't ignoring the env, but running with the default one. If you run chruby FOO && rubymine
everything works as expected.
Can you run chruby without params so it can read the .ruby-version?
On Fri, Aug 12, 2016 at 6:00 PM, David Christ notifications@github.com wrote:
I know this is old, but actually RM isn't ignoring the env, but running with the default one. If you run chruby FOO && rubymine everything works as expected.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/postmodern/chruby/issues/275#issuecomment-239367452, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGMt9mU_IaeD4b4UNoRgHMvuZuZubBzks5qfAv9gaJpZM4CJxKU .
Of course, if you e.g. have the auto.sh in your shellrc, it will switch the version automatically. But you have to run RM from the terminal in order for it to pick up you current shell's environment.
You can always check your current environment through gem env
or chruby
.
It looks like support for chruby will finally get added 😃
Please see this discussion.
http://youtrack.jetbrains.com/issue/RUBY-14086#comment=27-761030
Thanks.