RubyMine not finding all gems in RVM gemset

RubyMine is not finding gems that are installed in my gemset despite me confirming that they're there. Let me take you through my configuration:

.ruby-version + .ruby-gemset: 2.2.2@go

Selected Ruby SDK: go (ruby-2.2.2)

Under Languages & Frameworks > Ruby SDK and Gems, the gem list in the right pane does show all necessary gems for my project, however, in External Libraries in the Project view, only three gems are shown. This makes my Run Configurations invalid ("No Rails found in SDK.")

(that's the full list)

Output from Tools > Show Gem Environment:

RUBYGEMS VERSION: 2.5.2
RUBY VERSION: 2.2.2 (2015-04-13 patchlevel 95) [x86_64-darwin14]
INSTALLATION DIRECTORY: /Users/tim/.rvm/gems/ruby-2.2.2@go
USER INSTALLATION DIRECTORY: /Users/tim/.gem/ruby/2.2.0
RUBY EXECUTABLE: /Users/tim/.rvm/rubies/ruby-2.2.2/bin/ruby
EXECUTABLE DIRECTORY: /Users/tim/.rvm/gems/ruby-2.2.2@go/bin
SPEC CACHE DIRECTORY: /Users/tim/.gem/specs
SYSTEM CONFIGURATION DIRECTORY: /etc
RUBYGEMS PLATFORMS:
ruby
x86_64-darwin-14
GEM PATHS:
/Users/tim/.rvm/gems/ruby-2.2.2@go
/Users/tim/.rvm/gems/ruby-2.2.2@global
GEM CONFIGURATION:
:update_sources => true
:verbose => true
:backtrace => false
:bulk_threshold => 1000
"benchmark" => false
"verbose" => true
"gem" => "--no-rdoc --no-ri"
REMOTE SOURCES:
https://rubygems.org/
SHELL PATH:
/Users/tim/.rvm/rubies/ruby-2.2.2/bin
/Users/tim/.rvm/gems/ruby-2.2.2@go/bin
/Users/tim/.rvm/gems/ruby-2.2.2@global/bin
/Users/tim/.rvm/bin
/Users/tim/.rvm/gems/ruby-2.2.4/bin
/Users/tim/.rvm/gems/ruby-2.2.4@global/bin
/Users/tim/.rvm/rubies/ruby-2.2.4/bin
/usr/local/heroku/bin
/Users/tim/.bin
/usr/local/bin
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/munki
/Library/TeX/texbin
/Users/tim/.rvm/gems/ruby-2.2.2@go/bin
/Users/tim/.rvm/gems/ruby-2.2.2@global/bin
/Users/tim/.rvm/rubies/ruby-2.2.2/bin
/Users/tim/.rvm/bin
/usr/local/heroku/bin
/Users/tim/.bin
/usr/local/texlive/2015/bin/x86_64-darwin
/usr/local/texlive/2015/bin/x86_64-darwin
/Users/tim/.rvm/bin
/usr/local/bin
----------------------
IDE: RubyMine 8.0.3, build #RM-143.1559
OS: Mac OS X 10.11.3[x86_64]
Java: 1.8.0_40-release-b108
RubyMine SDK Environment:
Sdk: RVM: ruby-2.2.2 [go]
Sdk Version: ver.2.2.2p95 ( revision 50295) p95
Ruby Interpreter: /Users/tim/.rvm/rubies/ruby-2.2.2/bin/ruby
RVM Sdk: yes, gemset:go
RVM Home: /Users/tim/.rvm
Sdk Language Level: 2.2
Sdk Load Path:
~/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0
~/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/x86_64-darwin14
~/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby
~/.rvm/rubies/ruby-2.2.2/lib/ruby/vendor_ruby/2.2.0
~/.rvm/rubies/ruby-2.2.2/lib/ruby/vendor_ruby/2.2.0/x86_64-darwin14
~/.rvm/rubies/ruby-2.2.2/lib/ruby/vendor_ruby
~/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0
~/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/x86_64-darwin14
/Applications/RubyMine.app/Contents/rubystubs22
Sdk Gem paths:
~/.rvm/gems/ruby-2.2.2@go/bundler/gems
~/.rvm/gems/ruby-2.2.2@go/gems
~/.rvm/gems/ruby-2.2.2@global/gems
Gems used for 'go':
media (0.0.1)
~/Development/go/engines/media
it_support ([path])
~/Development/go/engines/it_support
gotool (1.0.0)
~/Development/go/gems/gotool
launchpad (0.0.1)
~/Development/go/engines/launchpad
dev (0.0.1)
~/Development/go/engines/dev
org (0.0.1)
~/Development/go/engines/org
links (0.0.1)
~/Development/go/engines/links
guest (0.0.1)
~/Development/go/engines/guest
composite_primary_keys (8.1.2)
~/.rvm/gems/ruby-2.2.2@go/bundler/gems/composite_primary_keys-0db18264ad85
sq-sso (1.1.0)
~/.rvm/gems/ruby-2.2.2@go/bundler/gems/sq-sso-rails-3ad0d2c534d2
nda (0.0.1)
~/Development/go/engines/nda
apps (0.0.1)
~/Development/go/engines/apps
settings (0.0.1)
~/Development/go/engines/settings
go_people (1.1.1)
~/.rvm/gems/ruby-2.2.2@go/bundler/gems/go_people_rails-025029148298
kudos (0.0.1)
~/Development/go/engines/kudos
comp (0.0.1)
~/Development/go/engines/comp
messenger (0.0.1)
~/Development/go/engines/messenger
give (0.0.1)
~/Development/go/engines/give
food (0.0.1)
~/Development/go/engines/food
people (1.0.0)
~/Development/go/engines/people

Note that the list of gems here is different from the other two places. For reference, here's the output from gem environment on the command line:

RubyGems Environment:
- RUBYGEMS VERSION: 2.5.2
- RUBY VERSION: 2.2.2 (2015-04-13 patchlevel 95) [x86_64-darwin14]
- INSTALLATION DIRECTORY: /Users/tim/.rvm/gems/ruby-2.2.2@go
- USER INSTALLATION DIRECTORY: /Users/tim/.gem/ruby/2.2.0
- RUBY EXECUTABLE: /Users/tim/.rvm/rubies/ruby-2.2.2/bin/ruby
- EXECUTABLE DIRECTORY: /Users/tim/.rvm/gems/ruby-2.2.2@go/bin
- SPEC CACHE DIRECTORY: /Users/tim/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-14
- GEM PATHS:
- /Users/tim/.rvm/gems/ruby-2.2.2@go
- /Users/tim/.rvm/gems/ruby-2.2.2@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "benchmark" => false
- "verbose" => true
- "gem" => "--no-rdoc --no-ri"
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/tim/.rvm/gems/ruby-2.2.2@go/bin
- /Users/tim/.rvm/gems/ruby-2.2.2@global/bin
- /Users/tim/.rvm/rubies/ruby-2.2.2/bin
- /Users/tim/.rvm/bin
- /usr/local/heroku/bin
- /Users/tim/.bin
- /usr/local/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /usr/local/munki
- /Library/TeX/texbin
- /usr/local/texlive/2015/bin/x86_64-darwin

Any suggestions for troubleshooting this?

3 comments
Comment actions Permalink

I should add this happens with both the production and EAP versions of RubyMine.

0
Comment actions Permalink

Hello, Tim,

sorry for the delay. Could you please check if it happens in the last RubyMine 2016.2 EAP?

0
Comment actions Permalink

No, it's fixed.

0

Please sign in to leave a comment.