Description
Bug Report
I think that those two issues below are somehow related, that's why I'm creating a single issue
Current behavior
When I install an older version of a core (and also when a new core is released):
- the
board search
command returns an empty list - the Latest field in the
core list
commands always shows the currently installed version and not the actual latest.
$ arduino-cli core list
ID Installed Latest Name
$ arduino-cli core install arduino:[email protected]
Tool arduino:arm-none-eabi-gcc@7-2017q4 already installed
Downloading packages...
arduino:[email protected] downloaded
arduino:[email protected] downloaded
arduino:[email protected] downloaded
arduino:[email protected] downloaded
arduino:[email protected] downloaded
arduino:[email protected] downloaded
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
Configuring platform...
arduino:[email protected] installed
$ arduino-cli core list # Latest should show 1.8.11
ID Installed Latest Name
arduino:samd 1.8.10 1.8.10 Arduino SAMD Boards (32-bits ARM Cortex-M0+)
$ arduino-cli board search arduino:samd:mkrwifi1010 # should list something
Board Name FQBN Platform ID
<-- empty
$ arduino-cli core uninstall arduino:samd
Uninstalling arduino:[email protected]...
arduino:[email protected] uninstalled
Uninstalling arduino:[email protected], tool is no more required...
arduino:[email protected] uninstalled
Uninstalling arduino:[email protected], tool is no more required...
arduino:[email protected] uninstalled
Uninstalling arduino:[email protected], tool is no more required...
arduino:[email protected] uninstalled
Uninstalling arduino:[email protected], tool is no more required...
arduino:[email protected] uninstalled
Uninstalling arduino:[email protected], tool is no more required...
arduino:[email protected] uninstalled
$ arduino-cli core install arduino:samd
Tool arduino:arm-none-eabi-gcc@7-2017q4 already installed
Downloading packages...
arduino:[email protected] already downloaded
arduino:[email protected] already downloaded
arduino:[email protected] already downloaded
arduino:[email protected] already downloaded
arduino:[email protected] already downloaded
arduino:[email protected] downloaded
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
Configuring platform...
arduino:[email protected] installed
$ arduino-cli core list
ID Installed Latest Name
arduino:samd 1.8.11 1.8.11 Arduino SAMD Boards (32-bits ARM Cortex-M0+)
$ arduino-cli board search arduino:samd:mkrwifi1010
Board Name FQBN Platform ID
Arduino MKR WiFi 1010 arduino:samd:mkrwifi1010 arduino:samd
Expected behavior
board search
is expected to work with every core versionboard list
Latest field should show the latest core version available
Environment
- CLI version (output of
arduino-cli version
):arduino-cli alpha Version: 0.18.3 Commit: d710b642 Date: 2021-05-26T07:39:22Z
but the problem seems to be present also from0.17.0
(I did not try earlier versions) - OS and platform: Both Ubuntu 18.04 and MacOS Big Sur
Additional context
I tried to debug the problem, It seems it's not a visualization problem, but a init related one