-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
Boards list widget search must be deterministic #1110
Comments
The ideal would be to respect the order specified by the platform author in the The list may have a specific order that groups related boards or provides the primary targets first. For example: https://mcudude.github.io/MightyCore/package_MCUdude_MightyCore_index.json "boards": [
{
"name": "ATmega1284/P"
},
{
"name": "ATmega644/P/PA/A"
},
{
"name": "ATmega324P/PA/A/PB"
},
{
"name": "ATmega164P/PA/A"
},
{
"name": "ATmega32"
},
{
"name": "ATmega16"
},
{
"name": "ATmega8535"
}
], The primary target of the "MightyCore" boards platform is the ATmega1284 series, so that is listed first. After that, the other members of the ATmega1284's family are listed descending order by specs/interest (most casual users give preference to the higher spec parts since the price difference is really only significant for product manufacturing). The second most interesting targets ATmega32 and ATmega16 come next, again in descending specs/interest. Finally is the more obscure ATmega8535, which is included mostly for the sake of making the platform fully comprehensive. This ordering is the established behavior from Arduino IDE 1.x: |
@per1234 it appears to me that the order of the boards defined in the boards.txt configuration file is the same as the order defined in the package index. Can you confirm it? Because issue #802 says we want to use the order defined in boards.txt, while here it looks like we want to follow the one defined in the package index, so I would like to make sure we're doing the right thing before taking action. |
I can deny it. The package author can put any arbitrary content in the |
Ok. Can I ask you why in the Board list widget we want to order the boards as defined in the package index, while in the Tools > Board menu we want to use the boards.txt one? |
In Boards Manager, we don't necessarily have a There really would be no way to use the boards list from package index for the Tools > Board menu because that list is not linked to the board definitions other than in an unreliable way by hoping the two human readable strings happen to match (which as I explained they are not required to, and often do not even in the Arduino's primary package index). |
Understood, thank you for the reply! |
Describe the problem
The Boards included in this package content is generated by the IDE2 from the result from the CLI. It's not deterministic.
To reproduce
esp
,p
and addp
so that search runs again with theesp
term. Now the result is different.boards_package.mp4
Expected behavior
It's the same.
Arduino IDE version
rc8
Operating system
macOS
Operating system version
12.3.1
Additional context
Let's order the list of boards alphabetically in the IDE2.(See #1110 (comment))Issue checklist
The text was updated successfully, but these errors were encountered: