How do I use bundle exec rake on RubyMine?

扶醉桌前 提交于 2019-12-05 13:18:47

问题


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:

  • ignoring global gem path in the project settings
  • uninstalling the problematic gem

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?


回答1:


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



来源:https://stackoverflow.com/questions/20036583/how-do-i-use-bundle-exec-rake-on-rubymine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!