arduino / arduino-cli

Arduino command line tool
https://arduino.github.io/arduino-cli/latest/
GNU General Public License v3.0
4.24k stars 372 forks source link

Command "board details -b" does not show discovery and monitor tools #2141

Open PaulStoffregen opened 1 year ago

PaulStoffregen commented 1 year ago

Describe the problem

For boards like Teensy which require Pluggable Discovery and Pluggable Monitor tools, the "board details -b" command shows "Required tool" for only the regular tools. No mention is made of the required Pluggable Discovery and Pluggable Monitor tools.

To reproduce

With Teensy package file installed ( https://www.pjrc.com/teensy/package_teensy_index.json ) run this command:

./arduino-cli board details -b teensy:avr:teensy41 | grep tool

The output is:

Required tool: teensy:teensy-compile                 11.3.1
Required tool: teensy:teensy-tools                   1.58.0

Expected behavior

The output should probably look like:

Required tool: teensy:teensy-compile                 11.3.1
Required tool: teensy:teensy-tools                   1.58.0
Required tool: teensy:teensy-discovery               1.58.0
Required tool: teensy:teensy-monitor                 1.58.0

Arduino CLI version

Version: nightly-20230409 Commit: ea066cc Date: 2023-04-09T01:32:31Z

Operating system

Linux

Operating system version

Ubuntu 20.04.5

Additional context

No response

Issue checklist

PaulStoffregen commented 1 year ago

Perhaps "board details" is parsing the package index JSON, but only looking for toolsDependencies and ignoring discoveryDependencies or monitorDependencies from the Package Index Specification?

PaulStoffregen commented 1 year ago

Issue was first mentioned on this forum thread https://forum.pjrc.com/threads/53548-Arduino-CLI-And-IDE-now-Released-Teensy-Supported!?p=323915&viewfull=1#post323915