Skip to content

Detect FQBN automatically when port is supplied to compile/upload #1357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alranel opened this issue Jul 13, 2021 · 1 comment · Fixed by #1581
Closed

Detect FQBN automatically when port is supplied to compile/upload #1357

alranel opened this issue Jul 13, 2021 · 1 comment · Fixed by #1581
Assignees
Labels
topic: CLI Related to the command line interface type: enhancement Proposed improvement

Comments

@alranel
Copy link
Contributor

alranel commented Jul 13, 2021

As of now, compile and upload require the -b flag to supply the board FQBN, eg:

arduino-cli compile -u -p /dev/cu.usbmodem1D11 -b arduino:avr:mega

It would be nice to let users omit -b whenever -p is supplied:

arduino-cli compile -u -p /dev/cu.usbmodem1D11

In this case, FQBN can be tentatively detected using the same logic we already have for board list which provides the port-FQBN mapping.

The advantage of this would be a greatly simplified UX because we would remove the extra step of calling board list to read the FQBN (or the need for users to understand/find the correct FQBN manually from other source), thus reducing the needed awareness of the FQBN concept and the cognitive load related to it.

@alranel alranel added type: enhancement Proposed improvement topic: CLI labels Jul 13, 2021
@rsora
Copy link
Contributor

rsora commented Jul 14, 2021

Nice enhancement proposal thanks @alranel, just one note to our future self:

the message has to be shown only in "CLI mode" and not in "Daemon mode" so it will require a bit of logic to be implemented correctly.

cc @cmaglie @silvanocerza

@rsora rsora added topic: CLI Related to the command line interface and removed topic: CLI labels Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: CLI Related to the command line interface type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants