Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set executable path from WSL 2 directory #41

Open
Wwarrior1 opened this issue Aug 8, 2022 · 5 comments
Open

Unable to set executable path from WSL 2 directory #41

Wwarrior1 opened this issue Aug 8, 2022 · 5 comments

Comments

@Wwarrior1
Copy link

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 🙏

@lensvol
Copy link
Owner

lensvol commented Aug 8, 2022

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?).

@Wwarrior1
Copy link
Author

Wwarrior1 commented Aug 17, 2022

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).

@gilsonbp
Copy link

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?

@j7zAhU
Copy link

j7zAhU commented Oct 1, 2022

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

@DaniinXorchenabo
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants