Intellij IDEA Ruby Language Level

I got a Rails project in intellij idea, but somehow the language level seems to be set to 1.8. I got the following configuration:

enter image description here

enter image description here

But it still shows the following error:

enter image description here

Am I missing something? When I had colon syntax problems before, it was always the language level.

Thanks Robin

+3


source to share


2 answers


I still don't know what the problem is, but I think there was something to do with binstubs. What I've done:



  • I opened a project in RubyMine and got a warning: "no ruby ​​interpreter for the project" even though the correct rvm ruby ​​was selected
  • I deleted the folder .idea

    and folderbin

  • I reopened the project in RubyMine, this time it correctly recognized rvm ruby
  • I opened a project in Intellij IDEA, everything works fine here.
0


source


The answer is given by rweng:

  • Delete .idea folder
  • File / New / ProjectFromExistingSources


Maybe deleting the module and re-creating it might also help

0


source







All Articles