如何解决“运行配置错误:[在SDK中找不到Rails]"? [英] How to fix "Run Configuration Error: [No Rails found in SDK]"?

查看:650
本文介绍了如何解决“运行配置错误:[在SDK中找不到Rails]"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个Rails项目,希望能够在Ubuntu 15.10下使用IntelliJ 15.0.3(完整版)进行工作.

I am looking at a Rails project which I would like to be able to work with using IntelliJ 15.0.3 (full version) under Ubuntu 15.10.

该项目使用捆绑安装"进行构建. Rails使用"rails s"从命令行运行. IntelliJ(和RubyMine 8.0.3)不想启动Rails,但抱怨"[[在SDK中找不到Rails]".

The project builds with "bundle install". Rails run from the command line using "rails s". IntelliJ (and RubyMine 8.0.3) does not want to launch Rails but complains with "[No Rails found in SDK]".

我已经在Ubuntu中尝试了默认的ruby.我尝试编译Ruby 2.3.0并将其安装在自己的主文件夹中.红宝石二进制文件旁边有一个rails二进制文件.该宝石已安装.我无法在该项目中使用jruby,因为需要具有本机扩展的gems.

I have tried the default ruby in Ubuntu. I have tried compiling Ruby 2.3.0 and installing it in my own home folder. There is a rails binary next to the ruby binary. The gem is installed. I cannot use jruby for this project as gems with native extensions are needed.

我怀疑我可能是在Ruby插件中遇到了一个错误.有没有可以使用的解决方法或类似方法?

I am suspecting I may be hitting a bug in the Ruby plugin. Is there a workaround or similar I can use?

推荐答案

对我来说,我不需要重新安装任何版本的ruby,但是我确实必须进入

For me, I didn't need to reinstall any version of ruby, but I did have to go into

RubyMine->首选项->语言和框架-> Ruby SDK宝石

RubyMine -> Preferences -> Language & Frameworks -> Ruby SDK Gems

然后从那里重新选择我的gemfile中所述的红宝石版本.

then from there reselect the version of ruby stated in my gemfile.

这篇关于如何解决“运行配置错误:[在SDK中找不到Rails]"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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