intellij-blackconnect icon indicating copy to clipboard operation
intellij-blackconnect copied to clipboard

Unable to set executable path from WSL 2 directory

Open Wwarrior1 opened this issue 2 years ago • 5 comments

Problem: Lack of support for WSL 2 Unable to neither set Local Instance's path \\wsl$\Ubuntu-20.04\home\...\venv\bin\blackd nor run instance via Start button. Trying to save settings fails with an error 'blackd' binary path does not point to an executable.

image

It would be nice to support WSL 2 🙏

Wwarrior1 avatar Aug 08 '22 12:08 Wwarrior1

WSL 2 was never in the plans and I do not have an easy way to test it, sadly. Can you please share your exact OS information (Windows, Linux distro, black version, its method of install?).

lensvol avatar Aug 08 '22 12:08 lensvol

Right, so I can run instance manually then. Hopefully plugin works with it. Setup: venv created inside WSL (Ubuntu 20.04 LTS, latest WSL kernel version) via python3 -m venv venv. Black(d) 22.3.0. Windows 10 (21H2).

Wwarrior1 avatar Aug 17 '22 06:08 Wwarrior1

I have the same problem. I didn't want to have to install python on windows just to run Black. I've tried to do this in a few ways like giving the WSL executable path or passing it from .venv but none of those ways seem to work. @lensvol did you manage somehow?

gilsonbp avatar Sep 25 '22 13:09 gilsonbp

I'm seeing the same problem. Would be nice to find a way to use it

j7zAhU avatar Oct 01 '22 12:10 j7zAhU

I get this problem too. I installed this plugin to PyCharm 2022.1.4 (Windows 10) and I don't used wsl (but wsl 2 running in my computer)

DaniinXorchenabo avatar Oct 03 '22 09:10 DaniinXorchenabo