Skip to content

The name of the board changes after installing the corresponding boards package #620

Closed
@kittaakos

Description

@kittaakos

Bug Report

Current behavior

So the problem is the following; without anything installed, when I list (core search) the boards inside the Arduino AVR Boards boards package, I can see Arduino Mega. I install the boards package and run the same search; there is no Arduino Mega anymore. But I can see Arduino Mega or Mega 2560 instead.

This is critical for the Pro IDE because we cannot set the FQBN of a currently selected board after installing the corresponding boards package. (CC: @cmaglie)

Here are the steps (for macOS, please modify the rm -rf command based on the output of arduino-cli config dump):

rm -rf ~/Documents/Arduino && rm -rf ~/Library/Arduino15 \
&& ./arduino-cli version \
&& ./arduino-cli core update-index \
&& ./arduino-cli core search "Arduino AVR Boards" --format json \
&& ./arduino-cli core install arduino:avr \
&& ./arduino-cli core search "Arduino AVR Boards" --format json

Before the boards package installation:

      {
        "name": "Arduino Mega"
      },

After the installation:

     {
        "name": "Arduino Mega or Mega 2560",
        "fqbn": "arduino:avr:mega"
      },

Expected behavior

The name of the boards do not change.

Environment

  • CLI version (output of arduino-cli version): arduino-cli Version: 0.9.0 Commit: e4d02b4
  • OS and platform: macOS 10.15.3 (19D76)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions