1

I've installed Windows subsystem for Linux and I'm trying to run a simple python project.

However, I get the following error in the run dialog of intellij.

zsh:cd:1: no such file or directory: \wsl$Ubuntu-18.04homeuserrepotest_project

Not sure why the location above is missing the slashes as it's inside the project stucture. It does however pick up the Project SDK as 3.6 @ Ubuntu 18.04 Python 3.6.9

Also worth noting, I created the project using the intellij wizard setting the location to \\wsl$\Ubuntu-18.04\home\user\code\test_project

2
  • \ is an escape character. Try using \\\\wsl$\\Ubuntu-18.04\\home\\user\\code\\test_project
    – DavidPostill
    Commented Apr 10, 2020 at 19:19
  • It says invalid location when trying to create a new project using double slashes. Also can't change an existing project to that, as you need to browse to it; not able to type the path manually.
    – Kaigo
    Commented Apr 10, 2020 at 22:38

1 Answer 1

2

You can fix it configuring a path mapping:

File -> Settings -> Languages & Framework -> Ruby SDK and Gems -> Folder Icon

Local Path: //wsl$/Ubuntu-18.04/home/user/code/test_project

Remote Path: /home/user/code/test_project

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .