Previous custom discovery tool process left running after update #1960
Labels
priority: high
Resolution is a high priority
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Milestone
Describe the problem
In addition to the always available serial-discovery and mdns-discovery pluggable discovery tools of the
builtin
package, dependencies on custom discovery tools can be specified by boards platforms.The latest version of the custom discovery dependency is installed when installing or updating that platform.
🐛 The process for the previous version of a custom discovery tool is left running after a boards platform update that updates the discovery tool.
To reproduce
Setup
Demo
run the following
grpcurl
commands in another terminal:🐛 There is a leftover
teensy:[email protected]
process still running in addition toteensy:[email protected]
.Expected behavior
Discovery tool processes are cleaned up.
Arduino CLI version
732bdc5
Operating system
Windows, Ubuntu
Operating system version
Windows 10, Ubuntu 20.04
Additional context
Originally reported by @PaulStoffregen at https://forum.pjrc.com/threads/71370-Teensy4-1-reading-from-Serial-Monitor-of-Arduino-IDE?p=315184#post315184
I can also reproduce the issue using the equivalent command line interface commands. I chose to use the gRPC interface for the demo because the command line version seems unlikely to occur in real world usage, while the gRPC version is a simplification of an existing real world occurrence in Arduino IDE 2.x.
I suspected a similar problem might apply to the pluggable monitor tools (e.g., teensy-monitor). I did a quick check using Arduino IDE 2.x and found that only the previously running teensy-monitor process was running after the update. After I closed and reopened Serial Monitor, only a single teensy-monitor process for the updated version was running.
Issue checklist
The text was updated successfully, but these errors were encountered: