

Worked fine for me.A bundle install command in Ruby is used to install all of a project's dependencies. No need to worry, clean up the project, and set this up again. There might be times when indexes get corrupt and the whole rubymine is unable to detect dependencies and perform the run tasks. In short map Local Path: //wsl$/Ubuntu-18.04/home/user/code/test_project to Remote Path: /home/user/code/test_project and from now on you are good to run your code in you rubymine. Here there is a small change, you will need to map the local and remote path. You can do this by checking the edit configurations as mentioned here. In my case I wanted to set up the rake task. The next part is understanding the path that is associated with WSL and how they map to actual windows path. From here you will be able to get all the projects and dependencies and select the remote SDK. This is also available when you type ‘whereis ruby` in your wsl. Please check the output from by running in an irb ( ) and use that. THis will require the Unix name of the folder where ruby is. Please check if you get errors like “unable to read rbconfig from specified interpreter”, this means the path to RBConfig is not correct. Here in this link they mention about pointing to rvm for remote ruby interpreter or version manager, I pointed it to rbenv path for ruby. Once you are comfortable running the application from a WSL command line, using rake or rails or other tools like Heroku, we can shift to Rubymine. This is important to debug the configuration set ups in case of issues. I suggest setting up a running project either downloaded from GIT, or made locally, and ensure it works fine. In fact when initially WSL2 could not connect to network and I had to reset all network adapters as mentioned here( ) We can migrate to WSL2, and the recent documentation is available here ( ). In the link they have mentioned about setting up the Postgres database using a windows installer, I was able to set it up within WSL environment itself. The link here provides detailed steps on how to set this up with a Postgres backend.( ). In case you do not want to use Rubymine, still WSL is a good choice for setting up the Ruby projects. While providing the options the documentation recommends usage of WSL Windows Subsystem for Linux which is available as an application as well as configuration of windows developer tools. The installation options for rubymine is fairly detailed here, and easy to follow –. Though there is a license fee associated with its usage, but then it is worth it in my opinion. Rubymine is an excellent IDE when working on Ruby projects.
