Open ckuethe opened 3 years ago
There is a related discussion at https://github.com/arduino/arduino-ide/issues/201 about how the IDE or Arduino CLI can avoid or improve the user experience in the event of a port collision.
Even though related, this issue is not a duplicate of https://github.com/arduino/arduino-ide/issues/201 because this issue is about the former use of the IDE itself being the cause of the collision rather than some expected collision with another application using 50051 (e.g., Multipass).
Describe the bug Arduino-ide can leave behind something listening on port 50051 if the gui exits uncleanly
To Reproduce Steps to reproduce the behavior:
/path/to/arduino-ide 2>&1 | tee /tmp/arduino-log-1
^C
/path/to/arduino-ide 2>&1 | tee /tmp/arduino-log-2
Expected behavior Either clean up all processes on the way out, or try to reuse existing arduino-cli process
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.