Skip to content

Missing board option and Programmer menus for manually installed platforms #565

Closed
@per1234

Description

@per1234

Describe the bug

Menus are not added to the Arduino IDE Tools menu for boards of platforms installed to the sketchbook folder which have custom board options.

A Programmer menu is not added to the Arduino IDE Tools menu when a board of a platform installed to the sketchbook folder is selected.

To Reproduce
Steps to reproduce the behavior:

  1. Do a manual installation of the attiny:avr boards platform to the sketchbook. For example:
    git clone https://github.com/damellis/attiny ~/Arduino/hardware/attiny/avr
    
    Note: The issue is not specific to the attiny:avr platform. It should occur with any platform that has custom board menus.
  2. Start the Arduino IDE.
  3. Select Tools > Board > ATtiny Microcontrollers (in Sketchbook) > ATtiny24/44/45 from the Arduino IDE menus.
  4. Open the Tools menu. Note that there is no Processor, Clock, or Programmer menu, even though the attiny:avr:ATtinyX4 board has custom menus. and inherits programmers from the referenced arduino:avr core.

image

They are handled correctly by the classic IDE:
image
and by Arduino CLI:

per@HAL MINGW64 /c/ide 2/arduino-ide_nightly-20211021_Windows_64bit/resources/app/node_modules/arduino-ide-extension/build
$ ./arduino-cli board details attiny:avr:ATtinyX4
Board name:            ATtiny24/44/84
FQBN:                  attiny:avr:ATtinyX4

Package name:          attiny

Platform name:         ATtiny Microcontrollers
Platform architecture: avr

Option:                Processor                       cpu
                       ATtiny24                   ✔    cpu=attiny24
                       ATtiny44                        cpu=attiny44
                       ATtiny84                        cpu=attiny84
Option:                Clock                           clock
                       Internal 1 MHz             ✔    clock=internal1
                       Internal 8 MHz                  clock=internal8
                       External 8 MHz                  clock=external8
                       External 16 MHz                 clock=external16
                       External 20 MHz                 clock=external20
Programmers:           Id                         Name

(arduino-cli doesn't show the board's referenced programmers, but the output is the same even with the working Boards Manager installation, so I'm not sure it's related)

If you install the same platform via Boards Manager, the menus are shown as expected:

image

Expected behavior
Menus should be added to the Tools menu for programmers and custom options of the selected board regardless of how the board's platform was installed.

Desktop (please complete the following information):

  • OS: Windows 10, Ubuntu 20.04
  • Version: 2.0.0-beta.12-nightly.20211021
    Date: 2021-10-21T03:03:16.691Z
    CLI Version: 0.19.1 alpha [718bbbf2]

Additional context

Originally reported at:

Related: #126

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions