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

Autostart of blackd does not work

Open schakalakka opened this issue 2 years ago • 3 comments

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.

schakalakka avatar Jul 27 '22 12:07 schakalakka

That is interesting. I will try to replicate this on my Windows 10 machine.

lensvol avatar Jul 28 '22 10:07 lensvol

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.

m-ad avatar Nov 16 '22 08:11 m-ad

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.

scnerd avatar Feb 02 '23 22:02 scnerd