[Solved] In Rails project with the Intellij IDEA, when I did 'Run Rake Task' I got 'Ruby SDK isn't set' error.

Answered

Versions

IntelliJ IDEA 2018.2.5 (Ultimate Edition)
Build #IU-182.4892.20, built on October 16, 2018
Licensed to Hidehiro Nagaoka
Subscription is active until September 15, 2019
For educational use only.
JRE: 1.8.0_152-release-1248-b19 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.1

Ruby 2.2.2

Rails 4.2.6

Situations

When I did 'Run Rake Task' I got 'Ruby SDK isn't set' error. But I set the Ruby SDK in the File -> Project Structure.


Reason

The project is detected as a JRuby, so I re-create the project like Ruby on Rails project.

2 comments
Comment actions Permalink

Hello,

could you please specify whether the problem persists for you or not (it's marked as solved)? If yes, then could you please attach a screenshot from File | Project Structure | Modules and Facets?

1
Comment actions Permalink

Hello, thank you for the reply, this was my misunderstanding, so this is solved.

0

Please sign in to leave a comment.