Closed
Description
Hi,
I have a similar issue than #11069
Arduino IDE 1.8.13 on Windows 10. Examples menu has the correct behavior but not in Tools menu.
The new STM32duino core release will provide more boards support but now list are longer than screen height, and impossible to scroll down the list like in the example menu.
I need to find a workaround for this else release is compromised.
/cc @matthijskooijman FYI
Originally posted by @fpistm in #11069 (comment)
Activity
facchinm commentedon Apr 12, 2021
@fpistm the fix should be very similar to https://github.com/arduino/Arduino/pull/6411/files (only applied to the right menu). Is it possibile to test a fix using the actual (or git) version of STM32 core?
matthijskooijman commentedon Apr 12, 2021
@facchinm That's what I thought, but when I tried that, it makes the menus show up empty. I suspect that maybe the menu scroller does not handle hidden items (since that's I think what the board menus use?) properly, or maybe the board menu code adds/removes items from the menus at the wrong time (i.e. after the scroller modifies the menu to hide the extra items when the menu is displayed, and before the scroller restore the menu when it is closed again). I haven't dug in further than this, though.
fpistm commentedon Apr 12, 2021
Note that Arduino IDE 2 Beta4 manages properly the menu.
About this comment from @matthijskooijman
I would love not using the board options. If the boards.txt syntax could allow to specify at least one submenu it could ease several things and end users would have a better menu comprehension because they often do not understand they need to first select a "category" then in the option select a board in the "Board part number":
This would also ease arduino-cli usage when list all the boards:
Currently we have:
But it would be fine to have:
Generic STM32L4 series STM32:stm32:GENERIC_L452RETxP
anyway I guess this requires to update also arduino-cli.
One other way could be to be able to split the boards.txt. 1 per submenu this would avoid to add a new syntax to the boards.txt. Only parse each boards_submenu_name.txt. If only one files same then before else several submenu. Just an idea 😉
fpistm commentedon Apr 12, 2021
You could use this PR: stm32duino/Arduino_Core_STM32#1091
At least the boards.txt with the "Generic L4 series" entry.
Note that with this PR we will support more than 500 boards entry.
Make Custom menus scrollable