Skip to content

core search: please set the installed property for installed platforms #2023

Closed
@dankeboy36

Description

@dankeboy36

Describe the request

After installing a platform, the installed version string is missing from the response JSON when running core search. It's available on the core list response. If there are no technical limitations, please set the installed property of the Platform for core search as described on the API. Thanks!

// Version of the platform.
stringinstalled=2;

Describe the current behavior

  1. Clean state:
rm -rf ~/Library/Arduino15 rm -rf ~/Documents/Arduino/libraries 
  1. Check platforms:
./arduino-cli core list --format json 
[]
  1. Check installed and latest with core search:
./arduino-cli core search "" --format json | jq '.[] | select(.id == "arduino:avr") | .installed' 
null
./arduino-cli core search "" --format json | jq '.[] | select(.id == "arduino:avr") | .latest' 
"1.8.6"
  1. Install AVR:
./arduino-cli core install arduino:avr --format json 
  1. installed is set for core list responses:
% ./arduino-cli core list --format json | jq '.[] | select(.id == "arduino:avr") | .installed' 
"1.8.6"
  1. installed is still missing for core search:
./arduino-cli core search "" --format json | jq '.[] | select(.id == "arduino:avr") | .latest' 
"1.8.6"
./arduino-cli core search "" --format json | jq '.[] | select(.id == "arduino:avr") | .installed' 
null

Arduino CLI version

arduino-cli Version: git-snapshot Commit: 357d465 Date: 2023-01-03T09:30:23Z

Operating system

macOS

Operating system version

11.6.5

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the nightly build
  • My request contains all necessary details

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    close