RubyMine-没有为项目配置Ruby解释器 [英] RubyMine - No Ruby interpreter configured for the project
问题描述
我转到设置-Ruby SDK和Gems",然后选择C:\RailsInstaller\Ruby1.9.3\bin\ruby.exe
.
I go to Settings - Ruby SDK and Gems, and pick out C:\RailsInstaller\Ruby1.9.3\bin\ruby.exe
.
它在右侧加载了一堆宝石,看起来像在工作.
It loads up a bunch of gems on the right side, and looks like it's going to work.
我单击OK,仍然高亮显示语法,它仍然认为它没有Ruby解释器.
I hit OK, and still have awful syntax highlighting and it still thinks it has no Ruby interpreter.
我试图使缓存无效,甚至下载新版本的ruby并将其指向新的二进制ruby.exe文件.
I've tried invalidating the cache, and even downloading a new version of ruby and pointing it to the new binary ruby.exe file.
推荐答案
将项目移至另一台运行不同版本JRuby的PC时,我遇到了此问题.分辨率:
I faced this problem when I moved my project to another PC running a different version of JRuby. resolution:
- 关闭RubyMine
- 删除
.idea/
文件夹 - 在RubyMine中重新打开项目
- close RubyMine
- delete
.idea/
folder - re-open project in RubyMine
这篇关于RubyMine-没有为项目配置Ruby解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!