Question: After importing an existing project into RubyMine, I encountered "Rails server launcher wasn't found in the project" when I Run/Edit Configuration. 

I've checked this [Cannot start the debugger in Rubymine. Rails server launcher wasn't found in project](https://stackoverflow.com/questions/27883244/cannot-start-the-debugger-in-rubymine-rails-server-launcher-wasnt-found-in-pro), but deleting the .idea directory and re-open is not helpful. 

I can `rails server` in the Terminal successfully and the rails server runs. So I guess it's likely a RubyMine related thing.

Thanks,
Allen

Answer: 
This worked for me

* Remove the .idea file
* Invalidate the cache and restart the ide
if you follow the solution from Artyom Blagoda on the Windows with ruby installed on the WSL (Ubuntu) you'll get into situation when wsl path (\wsl$\Ubuntu) of ruby script (rails) could not be found by remote (Ubuntu) ruby interpreter. to make it work you need to add path mapping on:

**Settings -> Ruby SDK and Gems** -> Your remote ruby or RVM -> then click the folder icon above, you'll find a new window where you put:

Local Path: //wsl$/Ubuntu/PATH\_TO\_YOUR\_RAILS\_BIN

---

Remote Path: PATH\_TO\_YOUR\_RAILS\_BIN

hope it helps ;)