Rework board attach command #1925
Labels
conclusion: resolved
Issue was resolved
criticality: medium
Of moderate impact
topic: code
Related to content of the project itself
type: enhancement
Proposed improvement
Milestone
The
board attach
command has a broken implementation:Inconsistent port argument format
Currently, the command will only accept a port when passed in as a full path (e.g.:
serial:///dev/cu.usbmodem14301
). This is inconsistent with all the other commands that accept a port argument, which allow the more user friendly address (e.g.:/dev/cu.usbmodem14301
) to be used.The command must accept the same address format as the other commands.
In order to allow a protocol of the port to be specified in addition to the address in cases where this is necessary, the command should also support a
--protocol
flag just as in the other commands that accept a port argument. This information will be stored in thecpu.protocol
field ofsketch.json
.Support for the previous port format should be retained.
Outdated board identification feature
Currently, when a port is passed to the command, it attempts to automatically identify the board on that port and save its FQBN and name in the
cpu.fqbn
andcpu.name
fields ofsketch.json
.This feature uses the obsolete
github.com/arduino/board-discovery
module.Although the feature could be modernized, its value is questionable. The available resources would be better allocated to more important work than to updating and maintaining the feature. For this reason, the auto-detection of board data from port feature should simply be removed.
The text was updated successfully, but these errors were encountered: