Closed
Description
Describe the problem
I want to see the list of currently installed cores on my system. But cannot.
To reproduce
- Type
arduino-cli core list
in the terminal. - Hit Enter
- Nothing happens
Expected behavior
I get a list of available cores on the system
Arduino CLI version
Version: 0.33.0 Commit: ca60d4b Date: 2023-05-30T12:14:01Z
Operating system
Windows
Operating system version
Windows 11
Additional context
I can see a list of installable/installed cores by appending the --all
argument.
PS C:\Users\Ali Jahangiri\Documents\GitHub\nicla-sense-me-fw> arduino-cli core list --all
ID Installed Latest Name
arduino:avr 1.8.6 Arduino AVR Boards
arduino:mbed_edge 4.0.2 Arduino Mbed OS Edge Boards
arduino:mbed_giga 4.0.2 Arduino Mbed OS Giga Boards
arduino:mbed_nano 4.0.2 Arduino Mbed OS Nano Boards
arduino:mbed_nicla 4.0.2 Arduino Mbed OS Nicla Boards
arduino:mbed_opta 4.0.2 Arduino Mbed OS Opta Boards
arduino:mbed_portenta 4.0.2 Arduino Mbed OS Portenta Boards
arduino:mbed_rp2040 4.0.2 Arduino Mbed OS RP2040 Boards
arduino:megaavr 1.8.8 Arduino megaAVR Boards
arduino:nrf52 1.0.2 Arduino nRF52 Boards
arduino:sam 1.6.12 Arduino SAM Boards (32-bits ARM Cortex-M3)
arduino:samd 1.8.13 Arduino SAMD Boards (32-bits ARM Cortex-M0+)
Arrow:samd 2.1.0 Arrow Boards
atmel-avr-xminis:avr 0.6.0 Atmel AVR Xplained-minis
emoro:avr 3.2.2 EMORO 2560
industruino:samd 1.0.1 Industruino SAMD Boards (32-bits ARM Cortex-M0+)
Intel:arc32 2.0.6 Intel Curie Boards
Intel:i586 1.6.7+1.0 Intel i586 Boards
Intel:i686 1.6.7+1.0 Intel i686 Boards
littleBits:avr 1.0.0 littleBits Arduino AVR Modules
renesas:rl78g22_fpb 2.0.0 RL78/G22 Fast Prototyping Board
renesas:rl78g23_fpb_p64 2.0.0 RL78/G23-64p Fast Prototyping Board
Microsoft:win10 1.1.2 Windows 10 Iot Core
arduino:mbed 3.3.0 [DEPRECATED] [DEPRECATED - Please install standalone packages] Arduino Mbed OS Boards
The arduino-cli board list
correctly identities the connected board name, FQBN and the core (arduino:mbed_nicla
).
PS C:\Users\Ali Jahangiri\Documents\GitHub\nicla-sense-me-fw> arduino-cli board list
Port Protocol Type Board Name FQBN Core
COM3 serial Serial Port Unknown
COM4 serial Serial Port Unknown
COM7 serial Serial Port (USB) Arduino Nicla Vision arduino:mbed_nicla:nicla_vision arduino:mbed_nicla
Issue checklist
- I searched for previous reports inI verified the problem still occurs when using theMy report contains all necessary details
Activity
aliphys commentedon Jun 20, 2023
This is a newly setup laptop, so there were no cores installed previously. I have not installed the Arduino 2.x IDE either. I installed the core for the Nicla Vision, which triggered the install of USB drivers as well.
When the
arduino-cli core list
command after the core is installed is run, the newly installed core is displayed.aliphys commentedon Jun 20, 2023
Possible solution: replace this line
arduino-cli/commands/core/list.go
Line 88 in 642996f
With this
[-][AE-111] `core list` command gives no output[/-][+][AE-111] `core list` command gives no output when no platforsm are installed[/+][-][AE-111] `core list` command gives no output when no platforsm are installed[/-][+][AE-111] `core list` command gives no output when no platforms are installed[/+]alessio-perugini commentedon Jun 23, 2023
@aliphys 👋 Thanks for reporting this. I agree with you. When we have no installed cores it's not clear what's going on.
Currently, when no cores are installed, we print only if we pass the
--format json
flag. (The result is an empty array[]
).I wouldn't return any error on the API level, as this kind of thing should be inferred by the length of the data we receive. But your suggestion is still valid it just needs to be implemented in a different place 🤓
We have two options:
[-][AE-111] `core list` command gives no output when no platforms are installed[/-][+]`core list` command gives no output when no platforms are installed[/+]