Skip to content

Menus defined in boards.txt have no defined ordering #7955

Closed
@sleemanj

Description

@sleemanj

If one defines menus in a boards.txt there is no defined or even reliable or repeatable ordering for how those menus are sorted in the Tools menu

Example, if one defines menus thusly

menu.version    = Processor Version
menu.clock      = Processor Speed
menu.boot       = Use Bootloader
menu.core       = Millis, Tone Support
menu.millis_ppm  = Millis Accuracy
menu.print      = Print Support
menu.serial     = Serial Support
menu.lto        = Link Time Optimisation (1.6.11+ only)
menu.bodlevel   = Brown-out Detection Level
menu.advclk     = Override Clock Source
menu.advfrq     = Override Frequency
menu.advups     = Override Upload Speed

then one might reasonably expect them to be shown in this order (where a variant has that menu), however the actual results appear largely at-random with no discernible pattern I can see, not alpha, not first appearance in the file... I think it's just pretty much random.

a2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions