No Ruby interpreter is configured

I'm using IntelliJ IDEA Ultimate 2020.2 and tried to configure Ruby environment.

I can't configure ruby environment, please help. I'm developing the Ruby on Rails program.

 

The project SDK is configured a Ruby in RVM.

I added JRuby and JRuby on Rails at Facet pane.

but modules pane says No Ruby SDK's found

when I tried to add ruby env aa

nothing changed

 

I clicked "OK" button but error appeared.

0

Hello,

as far as I can see the module you're trying to add SDK for is configured as a Java one, not Ruby. Could you please try readding it as a Ruby one?

0

Hello, Olga.

 

Thanks. How can I do it? 

 

Synonyms for "that"asforwithand thatwherefromithowwhichsohitare

0

You can click on '-' for a module in question in File | Project Structure | Modules. Then you need to invoke + | Import module | the path to it | Open | Create module from existing sources | Apply. 

0

Hi, Olga.

I tried it but nothing changed. Should I use Ruby Mine?

0

Should I add framework support in advance? and is JRuby, not Ruby, required?

0

Could you please attach a screenshot from the Modules tab after readding the module?

0

created a module from exsiting sources

0

Hello Olga

Probably, I solved it.

I choose "create new module" option in module pane, instead of "import module".

And designate current rails directory. After that warning in code editor disappeared

0

So does it mean that your project hasn't been recognized as a Ruby/Rails one on a step of importing it?

0

Yes. Importing didn't work, but creating new module worked.

0

We're working on that issue in https://youtrack.jetbrains.com/issue/RUBY-17376 so you can follow it there

0

Hi I'm still facing this issue. Have moved my plain ruby projects from my old laptop to my new laptop (by checkout from git repository). Using IntelliJ Ultimate 2021.1.1. (with ruby plugin). It keeps saying "NO SDK" found. 

Workaround for is to open the project in Ruby mine (trial version) first, set SDK.

After that open IntelliJ Ultimate 

0

Djvankes, is it a plain Ruby or Rails project?

0

请先登录再写评论。