如何在RubyMine上使用bundle exec rake? [英] How do I use bundle exec rake on RubyMine?

查看:98
本文介绍了如何在RubyMine上使用bundle exec rake?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在堆栈溢出
中发现了此帖子 ruby​​mine错误:您已经激活了rake 10.0.3,但是您的Gemfile需要rake 0.9.6。使用bundle exec可以解决这个问题

这可以解决两个可能的解决方案:

that offesr two possible solutions:


  • 忽略项目设置中的全局gem路径

  • 卸载有问题的gem

这些解决方案都对我没有帮助:我试图忽略全局gem路径,但是我不断收到相同的错误消息。关于卸载gem,这是不可能的,因为我有其他项目取决于较新的rake版本,我不想弄乱。

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.

推荐答案

转到 Run 是什么方法才能迫使RubyMine在执行rake任务之前使用bundle exec? >-> 编辑配置,选择 BUNDLER选项卡,然后单击在包的上下文中运行脚本(包exec)复选框。

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

这篇关于如何在RubyMine上使用bundle exec rake?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆