-
-
Notifications
You must be signed in to change notification settings - Fork 429
Closed
Labels
type: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
Describe the problem
Upon installing the arduino-cli via brew, an Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
error is displayed when the arduino-cli core list
command is entered into the terminal.
To reproduce
- Install
brew
andgcc
from the terminal
sudo apt install curl
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"~
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/ali/.profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
sudo apt-get install build-essential
brew install gcc
- Install
arduino-cli
brew update
brew install arduino-cli
- Run command
arduino-cli core list
$ arduino-cli core list
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
ID Installed Latest Name
arduino:avr 1.8.3 1.8.3 Arduino AVR Boards
arduino:mbed_nano 2.0.0 2.0.0 Arduino Mbed OS Nano Boards
arduino:samd 1.8.11 1.8.11 Arduino SAMD Boards (32-bits ARM Cortex-M0+)
Expected behavior
$ arduino-cli core list
ID Installed Latest Name
arduino:avr 1.8.3 1.8.6 Arduino AVR Boards
arduino:mbed_nano 2.0.0 4.0.2 Arduino Mbed OS Nano Boards
arduino:samd 1.8.11 1.8.13 Arduino SAMD Boards (32-bits ARM Cortex-M0+)
Arduino CLI version
arduino-cli Version: 0.32.1 Commit: a8787b8 Date: 2023-04-07T13:55:06Z
Operating system
Linux
Operating system version
Ubuntu 22.04
Additional context
It is possible to solve this by running the arduino-cli core update-index
command as mentioned by a Forum user here. Then, the next time arduino-cli core list
is run, the required tools are installed.
Ideally this should not be required and this step should happen without user intervention.
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the nightly build
- My report contains all necessary details
Metadata
Metadata
Assignees
Labels
type: imperfectionPerceived defect in any part of projectPerceived defect in any part of project