gaudi_br
gaudi_br

Reputation: 193

How do I use bundle exec rake on RubyMine?

i found this post in stack overflow rubymine error: You have already activated rake 10.0.3, but your Gemfile requires rake 0.9.6. Using bundle exec may solve this

that offesr two possible solutions:

So far none of these solutions worked for me: I tried ignoring the global gem path, but I keep getting the same error message. With regards to uninstalling the gem, well, that's not possible as I have other projects depending on the newer rake version, which I don't want to mess up with.

What would be a way to force RubyMine into using bundle exec before rake tasks?

Upvotes: 15

Views: 8084

Answers (1)

Renews
Renews

Reputation: 624

Go to Run -> Edit Configurations, select the BUNDLER tab, and click the checkbox "Run the script in context of the bundle (bundle exec)"

Upvotes: 28

Related Questions