Rubymine WSL Gem detection
For some reason I can't seems to make Rubymine detect my gems on rails project when using through WSL.
I'm using WSL 2 (Debian) with RubyMine 2021.3.2 as ruby version manager I'm using Rbenv with ruby version 3.0.3
I got the framework detected without trouble but the gems part remain empty.
When opening rails files I've got error like it don't know it's in rails :
As I'm new to rubymine I guess I'm missing something in the settings.
If anyone got some clue, It would be of great help :)
Please sign in to leave a comment.
Hello,
Could you please also specify where your project is located, is it on Windows FS or inside WSL? In addition, does anything happen on clicking Synchronize button (in Settings | Ruby SDK and Gems)?
Hello,
The project is inside WSL.
As for the sync, sadly nothing happen when I click on it, there's the "update" and then "nothing to show".
Could you please specify how you installed rbenv inside WSL? In addition, at the moment working with projects located inside WSL might cause problems (https://youtrack.jetbrains.com/issue/RUBY-25956), still it shouldn't affect the way gems are synchronized.
Sure, it was installed using
as well as some git clone for plugins :
I also tried installing my project on a VM and got the same problems with Gems sync, so I'm guessing it has maybe something to do with the project configuration and not WSL itself but I'm not sure about that.
Usually version managers aren't installed via sudo so probably it affected the gems' synchronization. Would it be possible to re-install or check on another server rbenv without sudo?
I'll try this and come back to you once I'll be done :)
Still not working with rubymine sadly.
Worked for me afeter installing rsync on wsl machine
Using Amazon Linux 2 in WSL2, the solution from Emanuelbotelho worked for me. My project is outside WSL2, but mounted inside it. Very convoluted, for sure.