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

时间:2022-07-31 22:44:49

I have recently updated my ruby version. I had ruby 2.1.0p0 and now moved to ruby 2.1.2p95.

我最近更新了我的ruby版本。我有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.

1 个解决方案

#1


0  

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 and Gems”设置设置为适当的Ruby版本,将最近的更新添加到2.1.2p95到您的列表并选择它,如http://www.jetbrains.com/ruby所述/快速启动/#Step_3_Manage_Gems

Good luck.

#1


0  

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 and Gems”设置设置为适当的Ruby版本,将最近的更新添加到2.1.2p95到您的列表并选择它,如http://www.jetbrains.com/ruby所述/快速启动/#Step_3_Manage_Gems

Good luck.