Board-specific menu content not populated if board is selected prior to platform installation #2640
Open
3 tasks done
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
Some of the Arduino IDE menus contain items populated according to data specific to the currently selected board.
Arduino IDE has a helpful feature where the user can configure Arduino IDE's Tools > Board menu selection for a connected board by simply selecting the entry produced by the board's port from the "board selector" menu on the toolbar. For most official boards, this can be done even before the board's platform has been installed (the board's identification properties are sent to the "Arduino Builder API"). Although the board can't actually be used until the platform is installed, this allows Arduino IDE to automatically offer the installation of the platform, supporting a natural user flow for the first use of a board.
🐛 The board-specific menu content is not populated after platform installation after completion of the platform installation if the user has already selected the board model prior to the platform installation:
To reproduce
Equipment
Steps
Select File > Quit from the Arduino IDE menus if it is running.
All Arduino IDE windows will close.
Rename or delete the "user data" folder, which is located at the following path (this is done to effectively simulate the real world conditions of the first time use of a board):
<username>
is your Windows username)❗ If looking for it with your file manager or command line, note that the
AppData
folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".<username>
is your Linux username)❗ The
.config
folder may be hidden by default in your file manager and terminal.<username>
is your macOS username)❗ The
Library
folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.⚠ Please be very careful when deleting things from your computer. When in doubt, back up!
Start Arduino IDE.
If it is already installed, use Boards Manager to uninstall the platform of the board.
Connect the Arduino board to your computer.
Select the board from the board Selector menu on the Arduino IDE toolbar.
A notification will appear:
Click the "YES" button on the notification.
ⓘ This method of platform installation was chosen arbitrarily. The fault occurs no matter which method you use to install the platform.
Wait for the platform installation to finish.
Select File > Examples from the Arduino IDE menus.
🐛 The menu only contains "built-in" examples, and does not contain an "Examples for <board name>" section (which would normally have a submenu for each of the platform bundled libraries of the selected board).
Select Sketch > Include Library from the Arduino IDE menus.
🐛 The menu does not contain any library entries. The platform bundled libraries (e.g., "SPI", "Wire") are missing.
If the board has custom board options (e.g., "Processor" for Mega 2560, "Target core" for Portenta H7, "Partition Scheme" for Nano ESP32), select "Tools" from the Arduino IDE menus.
🐛 The menu does not contain entries for the custom board options.
Select any other board from Arduino IDE's Tools > Board menu.
Select the board you are using from Arduino IDE's Tools > Board menu.
Select File > Examples from the Arduino IDE menus.
🙂 The menu does contain an "Examples for <board name>" section with a submenu for each of the platform bundled libraries of the selected board.
🙂 The menu also contains entries for any globally installed libraries.
Select Sketch > Include Library from the Arduino IDE menus.
🙂 The menu contains entries for the platform bundled libraries.
🙂 The menu also contains entries for any globally installed libraries.
If the board has custom board options, select "Tools" from the Arduino IDE menus.
🐛 The menu contains entries for the custom board options.
Expected behavior
Menus are populated with board-specific data for the selected board.
Arduino IDE version
2.3.4
Operating system
Windows
Operating system version
11
Additional context
Originally reported at https://forum.arduino.cc/t/bug-or-incomplete-documentation-access-to-examples-for-uno-r4-wifi/1356636
Workaround
Alternatively, you can exit and then restart Arduino IDE.
Issue checklist
The text was updated successfully, but these errors were encountered: