Skip to content

board search fails with old core and core list not show latest version #1401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
umbynos opened this issue Aug 19, 2021 · 2 comments · Fixed by #1409 or #1410
Closed

board search fails with old core and core list not show latest version #1401

umbynos opened this issue Aug 19, 2021 · 2 comments · Fixed by #1409 or #1410
Assignees
Labels
type: imperfection Perceived defect in any part of project

Comments

@umbynos
Copy link
Contributor

umbynos commented Aug 19, 2021

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):

  1. the board search command returns an empty list
  2. 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

  1. board search is expected to work with every core version
  2. board 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 from 0.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

@per1234
Copy link
Contributor

per1234 commented Aug 19, 2021

I think this also affects Arduino IDE 2.x because I found that there are no boards if you install any version of a platform other than the latest.

@silvanocerza
Copy link
Contributor

Fixed by #1409 and #1410.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
4 participants