IntelliJ Idea - Bundler not working with IDEA 15

Hello,

I am trying to setup a Ruby project that contains Cucumber Tests and am running in to issues with the IDEA15 Ultimate that I have license to. It is unable to recognize the Bundler. Following are some brief pointers

  • On Mac OSX, using Ruby 2.3.1 installed with RVM
  • The bundler gem version used is 1.14.4
  • The same project works with RubyMine and IDEA 2016.3 with no changes and just having to point at the project and running default setup
  • I can run features inside RubyMine and on Terminal without any issues after installing bundler (gem install bundler) and doing a bundle install

Below are steps I follow to setup project in IDEA15 that has Ruby plugin enabled

  • Create New Ruby Project, point to the folder that contains the project code. (At this point the gems have not been installed). Finish all steps and close IDEA
  • On Terminal run bundle install
  • Open IDEA and the proper Ruby SDK appears
  • When I create a configuration to run a Cucumber feature in the Edit Configuration screen on the Bundler tab I see that the Bundler is disabled
  • On the Configuration tab the gem option shows [No mygem gem found in SDK] - where mygem is the name of my gemset
  • Also surprising is the fact that in Project Structure settings in the Modules, I see all the Gems appear that are part of mygem set
  • If ignore everything else and try to run my Cucumber feature I get Error running xxxx feature, Cannot find Bundler in RVM: ruby-2.3.1 [mygem] SDK.

Here are some other issues that I expect to see

  • Under the Tools, I do not see a Bundler appear
  • Under Tools > Show Gem Environment gives me Error running 'gem environment'

Some additional help articles that I have already referred to are below

0

This was intentionally moved to RubyMine forum since this belongs to RubyMine support engineers. You are welcome to submit a ticket if you want a faster response: https://intellij-support.jetbrains.com/hc/en-us/requests/new.

0

Hello,

there was a similar issue, which was fixed in 2016.1:

https://youtrack.jetbrains.com/issue/RUBY-17852

If you cannot perform upgrade you can try using rvm without any gemset or using SDK of a version lower than 2.3.

0

请先登录再写评论。