Skip to content
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

Auto-select boards config with hardwareId if present #1885

Closed
wants to merge 13 commits into from

Conversation

davegarthsimpson
Copy link
Contributor

@davegarthsimpson davegarthsimpson commented Feb 13, 2023

Motivation

To ensure boards not exposing an fqbn can still be "auto-selected", considering their hardwareId.

Change description

Retrieves hardwareId of a discovered port from the CLI.

Considers hardwareId of a discovered port when determining whether or not to "auto-select" a port.

Reviewer checklist

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

@davegarthsimpson davegarthsimpson changed the title Auto-select boards config with hardwareId if present Auto-select boards config with hardwareId if present Feb 13, 2023
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UPDATE: Resolved by cf6f83c

This must be updated to `1.19`:

GO_VERSION: "1.17"

Reference: arduino/arduino-cli#2026

@per1234
Copy link
Contributor

per1234 commented Feb 22, 2023

UPDATE: Resolved by cf6f83c

And the same change in the other workflows as well:


@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Feb 22, 2023
Copy link
Contributor

@kittaakos kittaakos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IDE2 should not use the HEAD of the master branch.

arduino-ide-extension/package.json Outdated Show resolved Hide resolved
@per1234 per1234 self-requested a review February 22, 2023 10:44
@kittaakos
Copy link
Contributor

The build is failing due to a breaking change in the CLI. See #1809 (comment) for details.

@davegarthsimpson
Copy link
Contributor Author

The build is failing due to a breaking change in the CLI. See #1809 (comment) for details.

thanks for the heads up! @kittaakos can we resolve this with just a change of this line?

@kittaakos
Copy link
Contributor

can we resolve this with just a change of this line?

Correct, IDE2 needs to adapt there. 👍

@davegarthsimpson davegarthsimpson marked this pull request as ready for review February 22, 2023 15:19
@kittaakos kittaakos self-requested a review February 22, 2023 15:23
@ubidefeo
Copy link

@davegarthsimpson
can you take care of the 2 changes requested?

kittaakos
kittaakos previously approved these changes Feb 22, 2023
Copy link
Contributor

@kittaakos kittaakos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me. I did not verify it.

@davegarthsimpson
Copy link
Contributor Author

@davegarthsimpson can you take care of the 2 changes requested?

@ubidefeo already done I believe!

lastBoardsConfigOnUpload.selectedBoard
);

if (!boardIsSameHardware && !boardIsSameFqbn) return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See here: #1913 (review)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davegarthsimpson davegarthsimpson self-assigned this Feb 23, 2023
@davegarthsimpson
Copy link
Contributor Author

closing in favor of #1913

@per1234 per1234 added the conclusion: duplicate Has already been submitted label Feb 24, 2023
@per1234 per1234 deleted the include-hardwareId-in-auto-selection branch August 1, 2023 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants