-
-
Notifications
You must be signed in to change notification settings - Fork 398
Let board listall
return boards sorted with the same order as in the original boards.txt
#1903
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
Conversation
Codecov ReportBase: 36.71% // Head: 36.72% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #1903 +/- ##
=======================================
Coverage 36.71% 36.72%
=======================================
Files 231 231
Lines 19723 19724 +1
=======================================
+ Hits 7242 7244 +2
+ Misses 11652 11648 -4
- Partials 829 832 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, let's wait for a review by @AlbyIanna, build artifact here
I tested the command as described in the PR description and it works fine. @cmaglie does it make sense to you? Otherwise we could just call the arduino-cli twice, once to get the ordered list and another time to get the other data. |
Actually, the
this means that the IDE obtains the FQBN in some other ways (for example with a |
Sorry @cmaglie, my bad. You are right, we use the BoardDetails request for doing another thing. We are actually using the BoardSearch request to get those packages. I can easily make a change to use listall instead. Thank you @cmaglie ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I gave the build a try with the IDE 2 and this was the result:
Which, to me, looks pretty similar to the IDE 1 listing:
LGTM 🚀
Thanks @cmaglie !
Please check if the PR fulfills these requirements
See how to contribute
before creating one)
UPGRADING.md
has been updated with a migration guide (for breaking changes)What kind of change does this PR introduce?
The ordering of the boards returned by
board listall
is now the same as the order of definition in theboards.txt
of the platform.What is the current behavior?
The ordering is undefined (random):
What is the new behavior?
The ordering is the same as in the
boards.txt
Does this PR introduce a breaking change, and is titled accordingly?
No