PyCharm opening WSL2 install terminal while running

I recently installed WSL2 and opened a PyCharm project in a WSL directory, but have since uninstalled WSL due to low storage. Now, whenever I open PyCharm, 1-2 WSL install terminals pop up (one after the other), and sometimes more while I am working on my projects. I have made sure to clear the project from recently open, and from all project lists, but it continues to open these terminals.

1

Hi StatisticalHorse

This is a known platform bug, tracked as IJPL-182532. JetBrains IDEs call wsl.exe without checking first whether WSL is still enabled, and Windows answers with the install prompt.

A workaround reported to work by another affected user: open Settings | Plugins, disable the bundled plugin "Remote Execution Agent: Bundled Binary Files", and restart the IDE. That plugin supplies the agent that runs processes in WSL, Docker and SSH environments, and is safe to disable while working locally.

Clearing Recent Projects alone does not stop the pop-ups.

Star IJPL-182532 to receive updates.
 

1

Thank you,

This was able to fix the issue while the IDE is running, but it is still for some reason occurring during the launch of PyCharm. 

0

StatisticalHorse, the pop-ups at launch come from a different place. PyCharm also runs several WSL checks at startup, for example to look for Git and terminal shells inside WSL. Those checks do not go through that plugin. The launch part is tracked separately as IJPL-201042, related to IJPL-182532.

One more thing to check: open Settings | Appearance & Behavior | Trusted Locations and remove any entries that start with \\wsl$ or \\wsl.localhost. For another affected user, this list was what triggered WSL on every launch (IJPL-172763). The cleanup did not help in every reported case, but the check is quick.

If the pop-ups at launch continue after the cleanup, there is no other clean workaround yet. Star IJPL-201042 to receive updates on the launch part.

0

请先登录再写评论。