[英]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.