How to fix “Run Configuration Error: [No Rails found in SDK]”?

≯℡__Kan透↙ 提交于 2019-12-23 07:38:33

问题


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.

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]".

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.

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


回答1:


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

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

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



来源:https://stackoverflow.com/questions/35583060/how-to-fix-run-configuration-error-no-rails-found-in-sdk

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