rweng
rweng

Reputation: 7230

Intellij IDEA Ruby Language Level

I got a Rails Project in intellij idea but somehow the language level seems to be set on 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 problems with the colon syntax before, it was always the language level.

Thanks, Robin

Upvotes: 4

Views: 719

Answers (2)

Bernhard
Bernhard

Reputation: 705

The answer is given by rweng:

  1. Remove .idea folder
  2. File/New/ProjectFromExistingSources

Maybe deleting the module and recreating the same might also help

Upvotes: 0

rweng
rweng

Reputation: 7230

I still don't know what the problem exactly was but I guess it had something todo with binstubs. What I did:

  1. I opened the project in RubyMine, where I got the warning: "no ruby interpreter configured for the project", though the correct rvm ruby was selected
  2. I deleted the .idea folder and the bin folder
  3. I opened the project in RubyMine again, this time it correctly recognised the rvm ruby
  4. I opened the project in Intellij IDEA, everything works fine here too.

Upvotes: 1

Related Questions