intellij-blackconnect
intellij-blackconnect copied to clipboard
Autostart of blackd does not work
Problem: Autostart not working (on Windows 10) even if
- "Start local blackd instance when plugin loads" is checked
- Path is manually set to C:\Users\myname.conda\envs\py310\Scripts\blackd (my conda virtual environment using python 3.10)
Remarks:
- Autodetection does not work (no black found in PATH or virtualenvs)
- Pressing "Start" does nothing. No error message.
- Running the blackd deamon by hand and connecting to it works fine.
That is interesting. I will try to replicate this on my Windows 10 machine.
I can confirm/reproduce this.
- Windows 10
- PyCharm 2022.2.3 (Community Edition)
- BlackConnect 0.5.0.
- black 19.10b0 (installed in the conda base environment
C:\Users\<username>\Miniconda3\Scripts\blackd
)
Same behaviour as for @schakalakka :
- Autodetect does not work
- Pressing "Start" does nothing
Running the blackd deamon by hand and connecting to it works fine:
$ python -m blackd
blackd version 19.10b0 listening on localhost port 45484
and I can connect on this port in BlackConnect.
Same here. I can't find the error report at the moment, but I think it said something about the child process terminating unexpectedly. Will edit and share if I can find it again.
I need to kill the zombie blackd process from task manager, then launch again from a terminal. After this I'm good until I restart my IDE.