简体   繁体   English

RubyMine语法错误-ruby 2.1.2的新版本

[英]RubyMine syntax error - new version of ruby 2.1.2

I have recently updated my ruby version. 我最近更新了我的红宝石版本。 I had ruby 2.1.0p0 and now moved to ruby 2.1.2p95. 我使用ruby 2.1.0p0,现在移至ruby 2.1.2p95。

The problem is that now almost all my files have syntax error showing in rubymine. 问题是,现在几乎我所有的文件都在rubymine中显示语法错误。

This used to be fine: 以前很好:

format.json { render json: data }

Now I have to change it to this to remove the error syntax: 现在,我必须将其更改为此,以删除错误语法:

format.json { render json => data }

The probleme is that I have more than 2000 files, I cannot changed all of them will take me ages. 问题是我有2000多个文件,我无法更改所有文件,这会花费我很多时间。

Please help. 请帮忙。

I stumbled on this question and I'm pretty sure I have your answer, though I would need more information to be certain. 我无意中发现了这个问题,尽管可以肯定需要更多信息,但我可以肯定地找到了您的答案。 (The same information Dave Schweisguth asked for) (与Dave Schweisguth要求的信息相同)

90% likely you need to set your "Ruby SDK and Gems" setting to the appropriate Ruby version, add that recent update to 2.1.2p95 to your list and choose it, as described at http://www.jetbrains.com/ruby/quickstart/#Step_3_Manage_Gems 您有90%的可能需要将“ Ruby SDK和Gems”设置设置为适当的Ruby版本,将最新更新更新为2.1.2p95到列表中并选择它,如http://www.jetbrains.com/ruby所述/ quickstart /#Step_3_Manage_Gems

Good luck. 祝好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 RubyMine新的应用程序问题:activesupport需要Ruby版本> = 2.2.2 - RubyMine new app issue: activesupport requires Ruby version >= 2.2.2 升级到Ruby版本2.1.2,乘客仍在1.9.3 - Upgraded to Ruby version 2.1.2, passenger still on 1.9.3 RubyMine使用不正确/不同的Ruby版本-Ubuntu - RubyMine Using Incorrect/Different Ruby Version - Ubuntu rbenv您的Ruby版本是2.0.0,但是您的Gemfile指定了2.1.2,但是唯一安装的版本是2.1.2 - rbenv Your Ruby version is 2.0.0, but your Gemfile specified 2.1.2 but the only version installed is 2.1.2 您的Ruby版本是2.2.0,但是您的Gemfile指定了2.1.2 - Your Ruby version is 2.2.0, but your Gemfile specified 2.1.2 您的Ruby版本是2.1.2,但是您的Gemfile指定了2.1.5 - Your Ruby version is 2.1.2, but your Gemfile specified 2.1.5 您的Ruby版本是2.3.0,但您的Gemfile指定为2.1.2 - Your Ruby version is 2.3.0, but your Gemfile specified 2.1.2 rbenv您的Ruby版本是2.0.0,但您的Gemfile指定为2.1.2 - rbenv Your Ruby version is 2.0.0, but your Gemfile specified 2.1.2 RubyMine 中的错误:没有为项目配置 ruby​​ 解释器 - Error in RubyMine : no ruby interpreter configured for project 超类必须是一个类(给定的模块)(类型错误)错误 Rails 4 Ruby 2.1.2 - superclass must be a Class (Module given) (TypeError) Error Rails 4 Ruby 2.1.2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM