RubyMine, bundler, & rvm
Hi,
I just downloaded rubymine. is there anything in particular i need to do to make it work properly with bundler & rvm? when i open a project, will it respect the .rvmrc?
in rubymine, when i run the spec configuration, and it complains of needing to run bundle install (which, i have run via the terminal, and see that my dataset gem is there)
/Users/steveburkett/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/steveburkett/.rvm/gems/ree-1.8.7-2010.02/bin/rake spec
Testing started at 3:00 PM ...
git://github.com/timo3377/dataset.git (at master) is not checked out. Please run `bundle install`
Empty test suite.
Process finished with exit code 11
I see that in RubyMine, gem environment shows
GEM PATHS:
/Users/steveburkett/.rvm/gems/ree-1.8.7-2010.02
/Users/steveburkett/.rvm/gems/ree-1.8.7-2010.02@global
Sdk Gem paths:
file:///Users/steveburkett/.rvm/gems/ree-1.8.7-2010.02/bundler/gems
file:///Users/steveburkett/.rvm/gems/ree-1.8.7-2010.02/gems
file:///Users/steveburkett/.rvm/gems/ree-1.8.7-2010.02@global/gems
and, in terminal, rvm info shows:
GEM_PATH: "/Users/steveburkett/.rvm/gems/ree-1.8.7-2010.02@g5core:/Users/steveburkett/.rvm/gems/ree-1.8.7-2010.02@global"
Why is g5core missing from RubyMIne's Gem paths?
thanks!
Please sign in to leave a comment.
ok, figured it out. I needed to go to SDK project settings and manually choose the right gemset. it would be nice if rubymine had see that i have a .rvmrc file in the project directory and used that...but, this isnt too bad :)
RubyMine looks in .rvmrc file while is opening project. Parser isn't complicated enough thus not all possible variants are covered. Could you show your .rvmrc file?