I am new to RubyMine and I have imported an existing project to the IDE. I have many gemsets and I have the .ruby-version and .ruby-gemset files setup correctly in the project so when I go to my project directory the right gemset is automatically getting used. The same gemset is shown to be used in RubyMine Settings under "Ruby SDK and Gems". However when I load the project it complained about missing gems - whereas "bundle install" on my command line indicated everything was good.
I then tried to run a Cucumber Scenario Step and it complained that cucumber-rails gem wasn't installed but doing a "bundle show cucumber-rails" on the command line showed it was installed in the right place. I also confirmed that in RubyMines under the gemset being used.
Not sure why it was complaining about missing gems I ran the bundle install command through RubyMine and it went ahead and installed all the gems under a different version of ruby that I am not using for this project.
So I am not sure why the gemset that RubyMine shows is using for the project is not the one it is using to check for the gems it needs.
Thanks for your thoughts/feedback.
Sanjay.