3 Replies Last post: Feb 22, 2014 8:46 AM by Oleg Sukhodolsky  
Jimeux Newbie 3 posts since
Aug 16, 2013
Currently Being Moderated

Feb 20, 2014 6:36 PM

Ruby 2.1.0 language level issue

I'm using IntelliJ 12.1.6 with the latest Ruby plugin, and I installed Ruby 2.1.0 (ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0]) on my Mac with the latest version of rbenv. In IntelliJ the language level is set as 1.8 and greyed out in Platform Settings > SDKs, so I can't change it.

 

I've read one or two other discussions about similar problems, but it's not clear what the cause is or how to solve the problem. I've tried re-adding the SDK, and reinstalling Ruby 2.1.0 again. Homebrew, rbenv, ruby-build etc are all up-to-date.

 

Does anybody have any idea how the language level is automatically selected? I can see that IntelliJ is including the folder rubystubs18 in the classpath.

Oleg Sukhodolsky JetBrains 871 posts since
Apr 4, 2012
Currently Being Moderated
Feb 21, 2014 5:18 PM in response to: Jimeux
Re: Ruby 2.1.0 language level issue

Ruby plugin for Idea 12 doesn't support ruby 2.1, you need to use Idea 13

 

Oleg.

Oleg Sukhodolsky JetBrains 871 posts since
Apr 4, 2012
Currently Being Moderated
Feb 22, 2014 8:46 AM in response to: Jimeux
Re: Ruby 2.1.0 language level issue

Hi,

 

ruby 2.1 support and some Rails 4.1 support are in the latest ruby plugin for Idea 13, spring support will be included in ruby plugin for Idea 13.1

 

Regards, Oleg.

More Like This

  • Retrieving data ...