WSL2 - specified path cannot be found
I try to run the project with WSL2 but there is a problem with the path
The CLI interpreter is configured:
The WSL instance works:
Note: I am working with WSL2 and the same project in VSCode without any problems
Where is the problem?
(PS. i use latest PHP Storm)
Please sign in to leave a comment.
Hm, that's strange, looks similar to https://youtrack.jetbrains.com/issue/IDEA-252213, but we need more info about your setup.
Is it a simple distrib installed from a MS Store?
Complete information about my setup:
PHPStorm version info:
Screen from MS Store:
Some screens from shell:
Thanks, everything looks right. Could you please try to open the File > Open window again to reproduce the problem, then collect IDE logs (run Help > Collect Logs and Diagnostic Data) & upload them to our portal? You can use https://uploads.jetbrains.com/ for this. Please let me know the upload ID after that.
Upload ID: 2021_03_24_17PL2yjw98tntkrR
Thanks, there are no WSL-related errors. Could you please check if it's any better in EAP build?
in the EAP compilation it sees WSL, but it's "inactive". GIFVideo example below:
Thanks! Could you please upload the logs collected in 2021.1 EAP build?
Upload ID: 2021_03_24_4YhFrpvwzkntW6S6
Thanks, I can see there's "java.nio.file.FileSystemException: \\wsl$\Ubuntu-20.04\..... Unable to determine if root directory exists" error message. We don't have any similar reports, this one should be looked closely by a corresponding team. It would be great if you could submit this to our tracker at https://youtrack.jetbrains.com/newIssue attaching the logs from 2021.1 installation. That way developers would be able to look into this further.
I am having the same issue. Are there any news? Which ticket is it?
Patrick, there are no known issues with listing the WSL share in 2021.2. Please check if
wsl --shutdown && wsl
solves the issue for you.If it does not, please submit your logs directory within a support ticket (Help | Contact Support).
The same issue here. Directory listing is unavailable for PHPStorm
More details: https://youtrack.jetbrains.com/issue/IDEA-265176
Maybe someone else will find it useful. Check your environment variables in Windows, PATH should have the following entries "C:\Windows\System32\" and "C:\Windows\System32\WindowsPowerShell\v1.0\". I spent 4 hours trying to figure out why my WSL directory fell off, it turned out that without these entries in the environment variables, storm does not know where WSL and Powershell are located
You're a genius, man! Thanks a lot!