Why can't I invoke run on a Ruby file for non-system Rubies when using RVM?

For the system Ruby I can right click the buffer and choose Run... If I switch the Ruby in preferences to the RVM ruby, that option no longer appears in the right-click dialog. Ideas?

2 comments

I deleted and re-created the .idea directory and then it worked on general files, but nothing ending in _spec.rb. After renaming same file to candidate_spa.rb it was runnable.

0

Please try RubyMine 2.0.2 rc2.

For the system Ruby I can right click the buffer and choose Run... If I switch the Ruby in preferences to the RVM ruby, that option no longer appears in the right-click dialog. Ideas?

It is supposed to work. Which file do you want to launch? Ordinary ruby script or spec test?

I deleted and re-created the .idea directory and then it worked on general files, but nothing ending in _spec.rb. After renaming same file to candidate_spa.rb it was runnable.

Check that "rspec" gem (and "rspec-rails" in Rails app) is attached to you project (see Settings | Ruby SDK and Gems). RubyMine cannot launch _spec.rb files with RSpec test runner if rspec support isn't enabled (e.g. rspec gem attaced, etc.)

0

Please sign in to leave a comment.