Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Fix incorrect loaded boards when platform name changes #1513

Merged
merged 2 commits into from
Jun 21, 2022

Conversation

gandarez
Copy link
Contributor

@gandarez gandarez commented Jun 7, 2022

This PR fixes Board Manager showing less vesions than expected. It happens because platform name may change between releases and there's a condtion which skips any other than the first one added. To keep the same behaviour as Arduino IDE it will always keep the latest platform name as source of truth.

Screen Shot 2022-06-07 at 16 41 04
Screen Shot 2022-06-07 at 18 22 09

Fixes #1511

@gandarez gandarez changed the title Fix incorrect loading boards when platform name changes Fix loading boards when platform name changes Jun 7, 2022
@gandarez gandarez changed the title Fix loading boards when platform name changes Fix incorrect loaded boards when platform name changes Jun 7, 2022
@gandarez
Copy link
Contributor Author

anyone?

@gcampbell-msft
Copy link
Contributor

gcampbell-msft commented Jun 21, 2022

@gandarez I pulled in your code and fixed a slight error. I played with it some and didn't notice any glaring errors pop up and am planning to complete the PR shortly! (Assuming no issues in the builds arrive)

@gcampbell-msft gcampbell-msft self-requested a review June 21, 2022 16:18
Copy link
Contributor

@gcampbell-msft gcampbell-msft left a comment

Choose a reason for hiding this comment

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

Tested and everything behaved as expected and nothing appeared broken.

@gcampbell-msft
Copy link
Contributor

/azp run

@gcampbell-msft gcampbell-msft merged commit 73d0857 into microsoft:main Jun 21, 2022
@gandarez gandarez deleted the bugfix/board-manager branch June 30, 2022 19:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Arduino Board Manager is not showing all versions on the dropdown
2 participants