Daggeto
Daggeto

Reputation: 993

Run the script in context of the bundle (bundle exec) is disabled in Rubymine

for all rspec its not possible to enable to run rspec in context of bundle (bundle exec). Why?

enter image description here

Upvotes: 2

Views: 2073

Answers (3)

djb
djb

Reputation: 668

I suspect this is because (by default) Rubymine is using the @global gemset in your Ruby SDK settings for your project (and the bundler gem is not installed in your @global gemset). I could be wrong.

If you use bundler and rvm (or rbenv I suspect), you can enable bundler by unchecking the "global" checkbox in your settings panel.

My Rubymine 2017.1 Settings

Upvotes: 2

Bozydar Sobczak
Bozydar Sobczak

Reputation: 684

Edit .idea/workspace.xml and replace find: <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> and switch bundleExecEnabled to true

Remember about closing the project before you start editing the XML.

Upvotes: 0

Brad Werth
Brad Werth

Reputation: 17647

It is enabled for me. Whenever weird stuff like this happens for me, I close all instances of RubyMine and delete the .idea directory from the project root. It will be recreated the next time you open the project. This .idea file corruption infrequently happens to me when I switch major project details, like Ruby versions.

Upvotes: 0

Related Questions