I have been working on a project from WSL distribution which used yarn and docker so when I tested the project locally, it took up a lot of space. I already have little space on my disk, so when I ran the project today it malfunctioned and had some cache issues. I restarted my laptop and now I can't open the project again.
I tried to manually open the project, but I got this error:
I can access the WSL distribution from Windows File Explorer by putting the address \wsl.localhost\Ubuntu-24.04. I tried to open the project with 'Open With' function but instead of the project WebStorm started in LightEdit mode.
I can open the project in VSCode without a problem.
I worked on this project from WSL in WebStorm for months now. I even reinstalled WebStorm and I still have this issue
I don't know if this will help everyone with this problem, but I restarted my laptop and now I can open the project without a problem. There were also discussions about this issue a few years ago on Jetbrains forums, so you might find something useful here: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360010604480-WSL2-specified-path-cannot-be-found
https://youtrack.jetbrains.com/issue/IJPL-2327/WSL2-specified-path-cannot-be-found