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

Sort Board menus as done in Arduino IDE 1.x #802

Closed
per1234 opened this issue Feb 2, 2022 · 3 comments · Fixed by #1520
Closed

Sort Board menus as done in Arduino IDE 1.x #802

per1234 opened this issue Feb 2, 2022 · 3 comments · Fixed by #1520
Assignees
Labels
conclusion: resolved Issue was resolved criticality: medium Of moderate impact priority: medium Resolution is a medium priority topic: CLI Related to Arduino CLI topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@per1234
Copy link
Contributor

per1234 commented Feb 2, 2022

Describe the current behavior

Arduino IDE 1.x sorts the menu for each platform in Tools > Board (e.g., Tools > Board > Arduino AVR Boards) according to the order of occurrence of the name property for each board definitions in the platform's boards.txt configuration file. This allows the platform developer to sort the boards in some logical order in the menu (e.g., putting commonly used boards at the top of the menu, or grouping related boards together).

Arduino IDE 2.x sorts them by alphabetical order, which gives the platform author no control. For example, in the Arduino IDE 2.x menu for the Arduino AVR Boards platform menu, the first 8 boards are 3rd party or retired.

Arduino IDE 1.x:

image

Arduino IDE 2.x:

image

To reproduce

  1. Select Tools > Board > Arduino AVR Boards from the Arduino IDE menus.
  2. Note the order of the boards in the menu.
  3. Compare this to the order of occurrence of the name properties for each board definition in the platform's boards.txt file:
    https://github.com/arduino/ArduinoCore-avr/blob/1.8.4/boards.txt

🙁 the Arduino IDE menu sort order does not match the order in boards.txt

Describe the request

Tools > Board menu for each platform is sorted according to the order in boards.txt.

Desktop

  • OS: Windows 10
  • Version: 2.0.0-rc3-snapshot.759b410
    Date: 2022-01-31T13:15:29.574Z
    CLI Version: 0.20.2 [13783819]

Additional context

Related:

@per1234 per1234 added criticality: low Of low impact priority: medium Resolution is a medium priority topic: code Related to content of the project itself type: enhancement Proposed improvement labels Feb 2, 2022
@KurtE
Copy link

KurtE commented Feb 2, 2022

Note, I do wish at times there were some extensions to the ordering of the boards in the boards manager, for example on my Windows Machine, my menu looks something like:
image

Now I probably do about 90% of my stuff using Teensyduino, so for example I wish there were quick ways for me to choose these boards.

Now the new drop down list with The Teensy Micromod on COM18 that would great that you can choose them directly.

But as an extension to the current stuff, it might be fun if the tools->boards had an optional show the last N boards selected or some such mechanism.

Another low priority possible extension of ability to allow the user to order the menu...

@per1234
Copy link
Contributor Author

per1234 commented Feb 3, 2022

Hi @KurtE. There is a previous request for that here: #330 and a related one here: #86

@AlbyIanna
Copy link
Contributor

Blocked by: arduino/arduino-cli#1834

@per1234 per1234 added the status: blocked Progress on this prevented by an external cause label Aug 11, 2022
@kittaakos kittaakos added the topic: CLI Related to Arduino CLI label Aug 18, 2022
@AlbyIanna AlbyIanna mentioned this issue Oct 4, 2022
4 tasks
@per1234 per1234 added conclusion: resolved Issue was resolved and removed status: blocked Progress on this prevented by an external cause labels Oct 17, 2022
@per1234 per1234 changed the title Sort Board menus like the classic IDE does Sort Board menus as done in Arduino IDE 1.x Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved criticality: medium Of moderate impact priority: medium Resolution is a medium priority topic: CLI Related to Arduino CLI topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants