RubyMine 5.4.1 can't find rbenv gems

We are using rbenv to manage our gems and Bundler to manage our project with no customizations (i.e., no .bundle/config). RubyMine correctly detects the Bundler SDK's and if I add, for example, an rspec configuration, it works fine. However, it constantly complains about gems not being found, and in the "Ruby SDK and Gems" Setting I get the message "RubyGems not installed for SDK: rbenv: jruby-1.7.2". The SDK is installed in $HOME/.rbenv/version/jruby-1.7.2 and the Gems are in $HOME/.rbenv/versions/jruby-1.7.2/lib/ruby/gems/shared/gems.

If I try to execute, for example, a Rack configuration, it tells me that the rackup script is not found. Again, RSpec works fine.

Running RubyMine 5.4.1 on OS X Mountain Lion.

5 comments

Hi,

could you please try to remove the sdk from the sdk list in RM and restart RM (is should recreate it)
If the problem will not be fixed, please file a bug in our tracker (http://youtrack.jetbrains.com/issues/RUBY)
Please provide RM's logs in the ticket (Help|Show Log in ...)

Oleg.

0

I did this (I had to manually add back the SDK since it didn't find it... I only removed the rbenv SDK that is being used by our project, not all of them). That fixed the problem with finding the gems, but when I try to execute the project from within RubyMine (it's a Rack application) I get "Error running Run wcamp: Rackup script is not found in SDK" (running rb rackup from the command-line works fine).

0

Mario,
I've created an issue http://youtrack.jetbrains.com/issue/RUBY-13669 so let's try to figure out what's going on using our bug tracking system. Could you please attach you Ruby SDK directory recursive listing to the bug? Thanks

0

Version 0.4.0 has been the current version of rbenv since January 4, 2013, but according to http://www.jetbrains.com/ruby/webhelp/rbenv-support.html, rbenv is supported only up to v 0.3.0. Does this document need to be updated regarding the newer version or is support broken with v0.4.0 of rbenv, and if so, why and when will this be fix and support restored?
The documentation says that only the defaul location of ~/.rbenv is supported, but should it work if I sym-link the actual location to there? I recently went to some trouble to switch from rvm to rbenv because the former is incompatible with GitHub's Boxen tools and I would be very disappointed if it turns out that RubyMine won't work with rbenv!

0

Hi,

we will upadate our help.  thank you for pointing the problematic help item.

As for sym-linked rbenv home it is supposed to work but we have no tested this.  The good news it that in our latest Momiji EAP (http://blog.jetbrains.com/ruby/2013/08/rubymine-momiji-eap-is-open/)
it is possible to specify custom location of rvm home (see http://youtrack.jetbrains.com/issue/RUBY-13877 for more information)

Regards, Oleg.

0

Please sign in to leave a comment.