postmodern / chruby

Changes the current Ruby
MIT License
2.87k stars 190 forks source link

Can Rubymine be accomodated by Chruby? #275

Closed timuckun closed 10 years ago

timuckun commented 10 years ago

Please see this discussion.

http://youtrack.jetbrains.com/issue/RUBY-14086#comment=27-761030

Thanks.

postmodern commented 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.

fesplugas commented 8 years ago

https://youtrack.jetbrains.com/issue/RUBY-14086#comment=27-1266480

dctr commented 8 years ago

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.

timuckun commented 8 years ago

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 .

dctr commented 8 years ago

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.

rkrdo commented 6 years ago

It looks like support for chruby will finally get added 😃