Dialog to open recent project on a wsl intance, fires up every single wsl instance registered on windows

For years I've been using wsl to work on my php projects. 

With PhpStorm I would just open a new project using the open folder dialog, which on windows ends up being something like \\wsl.localhost\some-wsl-instance\path-to-project (or with windows 10 \wsl$\some-wsl-instance )

Never had issues until the last update, PhpStorm 2024.3 Build #JBC-243.21565.202, built on November 13, 2024

I have a quite a lot of instances (close to 20), for different projects and/or services

The problem is that now when I launch PhpStorm and I get the recent projects dialog every single wsl instance starts, which is a lot. 

On a powershell window I check with wsl --list -v and  ALL OF THEM, without exception, are running. That is completely unnecessary.

Is there a configuration somewhere to prevent PhpStorm doing that ?

 

0

Please disable “Reopen project on start up” via Settings | Appearance & Behavior | System Settings

0

It is disabled. That's what makes the dialog of the recent projects to appear on launch

In any case, I enabled it so now there is no dialog but rather it goes directly to the last open project. 

The thing is, it still starts up every single wsl instance registered. That's crazy. 

Because not only starts the ones where there is a phpstorm project but also the ones that never had one, like some instances for different versions of postgres and mysql. Those too get initiated. That can't be the intended behaviour. It shouldn't.

The only thing I can do is to open up a project, let it happen, and then with a powershell console run “wsl --shutdown” with the project still open. That will close all the instances but the one that's is in “use” by phpstorm.

That's awful.

And this is 100% done by phpstorm. If I open the same project the same way with Visual Code, opening  a folder like \\wsl.localhost\some-wsl-instance\path-to-project, everything is fine. The only wsl active is that one. Doesn't anything with all the others.

 

 

0
Thanks Pablo, I see a YouTrack issue is created, and this is reproduced in 2024.3.
https://youtrack.jetbrains.com/issue/IJPL-171976/Opening-a-project-located-in-a-wsl-instance-automatically-starts-up-every-other-instance-registered-in-windows

Please downgrade to 2024.2.4 for a temporary workaround.
0

请先登录再写评论。