
~/.rbenv/versions/2.5.0/lib/ruby/vendor_ruby RVM Sdk: Rbenv sdk, gemset nullSdk Language Level: 2.5 Ruby Interpreter: /home/brad/.rbenv/versions/2.5.0/bin/ruby

home/brad/.rbenv/plugins/rbenv-gemset/bin SYSTEM CONFIGURATION DIRECTORY: /home/brad/.rbenv/versions/2.5.0/etc SPEC CACHE DIRECTORY: /home/brad/.gem/specs RUBY EXECUTABLE: /home/brad/.rbenv/versions/2.5.0/bin/rubyĮXECUTABLE DIRECTORY: /home/brad/.rbenv/versions/2.5.0/bin USER INSTALLATION DIRECTORY: /home/brad/.gem/ruby/2.5.0 INSTALLATION DIRECTORY: /home/brad/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0 If I bring up the "RubyGems Environment" view in RubyMine I get: RUBYGEMS VERSION: 2.7.3 It's clear from the error message that the GEM_PATH is incorrect, causing RubyMine to look in the wrong place for bundler, but I don't know where it's getting this configuration. So I can't figure out what context RubyMine is using to run this command.

When I run this from my interactive shell or with RubyMine's "Run anything" feature (login shell) this command works fine - as does any of the following: RBENV_VERSION=2.5.0 /usr/bin/rbenv exec bundle install

The output from the bundle install command claims it's running bash -c "RBENV_VERSION=2.5.0 /usr/bin/rbenv exec bundle install" RubyMine's Ruby SDK settings correctly detect rvm and its installed versions, and all of the installed gems for that version. My application installs, builds and runs just fine from an interactive shell.

I'm now getting matching results for interactive and login shells, but still getting unexpected behavior from the Bundle install command within RubyMine. When I try to run RubyMine's Bundler install command I'm told bash -c "RBENV_VERSION=2.5.0 /usr/bin/rbenv exec bundle install -V"Īfter noticing rbenv wasn't working properly in some RubyMine commands I moved the eval "$(rbenv init -)" setup step from by ~/.zshrc up to ~/.zshenv and ~/.profile so it will also apply to bash and zsh login shells (per guidance here). RubyMine Gem Manager: RubyMine has detected that some of the gems required for ' project' are not installed.
