WSL RubyMine "Could not get RubyGems environment for remote"

已回答

I am using a fresh install of WSL and I seem to be unable to setup the remote for Ruby in RubyMine. I put the error message in the title and here is a screen cap. Any help would be greatly appreciated. 

0
Avatar
Permanently deleted user

Update on this. This appears to be an issue specific to Pengwin. I was able to get it working using Ubuntu. Hope that helps!

0
Avatar
Permanently deleted user

Ok I figured it out. For some reason using WSL you have to use the ".rbenv/versions/<version>/ruby/bin" path rather than the Shim. 

 

This probably is something that RM should eventually address.

4

Hello Michael,

in case you add a remote rbenv SDK you need to use the path to rbenv executable rather than to a certain Ruby SDK.

2
Avatar
Permanently deleted user

Thanks for that Olga! Ok so I have made the change here and it gets me over that hurdle, but then I hit another -- RM can't see any gems for that Ruby. On WSL the gems are there and it runs fine via `rails s`.

2

Michael,

it appears to be a known problem related to Pengwin, please add your vote and follow https://youtrack.jetbrains.com/issue/RUBY-25253

0

请先登录再写评论。