Impossible to override default pluggable monitor for serial
protocol
#1563
Labels
criticality: medium
Of moderate impact
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Milestone
The new pluggable monitor system allows platform authors to specify an arbitrary monitor tool to use for each communication protocol.
For backwards compatibility, when no pluggable monitor is specified, the
builtin:serial-monitor
tool is used. However, platform authors should be able to use a custom monitor tool for theserial
protocol if they want.🐛 The
builtin:serial-monitor
pluggable monitor tool is used for ports of theserial
protocol even when a board is selected from a platform that a custom monitor tool for theserial
protocol.Steps to reproduce
platform.txt
file of one of the installed platforms in a text editor.arduino-cli monitor
command, specifying a board of the modified platform via the--fqbn
flag.🐛 The default
builtin:serial-monitor
tool is used rather that the expected failure of the command due to attempting to run the nonexistentfoobar
command specified via the pattern.bazqux
monitor protocol by adding the following line anywhere in theplatform.txt
file:arduino-cli monitor
command, specifying a board of the modified platform via the--fqbn
flag and using the--protocol bazqux
to specify the newly defined monitor protocol be used.🙂 Note that the command fails as expected due to attempting to run the nonexistent
foobar
command specified via the pattern.Demonstration
Environment
Additional information
The same problem occurs when using the
pluggable_monitor.required.PROTOCOL=VENDOR_ID:MONITOR_NAME
to specify a monitor tool dependency as defined in the platform's package index. I chose to usepluggable_monitor.pattern.PROTOCOL=MONITOR_RECIPE
for the demonstration due to it being more simple to set up(especially since the package index system for installing those tools is currently broken as well).The text was updated successfully, but these errors were encountered: