RubyMine - No Ruby interpreter configured for the project

China☆狼群 提交于 2020-01-01 04:12:06

问题


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.

I hit OK, and still have awful syntax highlighting and it still thinks it has no Ruby interpreter.

I've tried invalidating the cache, and even downloading a new version of ruby and pointing it to the new binary ruby.exe file.


回答1:


I faced this problem when I moved my project to another PC running a different version of JRuby. resolution:

  1. close RubyMine
  2. delete .idea/ folder
  3. re-open project in RubyMine



回答2:


I had this problem when git somehow got confused about whether files in RubyMine's .idea directory were in git or not. Doing things like git stash would clobber my RubyMine configuration. I fixed it by recloning my repo, copying .idea from the old clone to the new, and fixing my RubyMine configuration. After that it stayed fixed.

No idea whether that's why you're having this problem, but I'd look in to whether RubyMine is having any trouble writing files to .idea, or whether anything is changing those files behind RubyMine's back.




回答3:


Highly suggest if you're going to check in the .idea folder (I would ignore it personally) try using this gitignore to configure it correctly: https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore



来源:https://stackoverflow.com/questions/24454272/rubymine-no-ruby-interpreter-configured-for-the-project

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