Skip to content

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

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
3 tasks done
dankeboy36 opened this issue Jan 3, 2023 · 0 comments · Fixed by #2223
Closed
3 tasks done

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

dankeboy36 opened this issue Jan 3, 2023 · 0 comments · Fixed by #2223
Assignees
Labels
type: enhancement Proposed improvement

Comments

@dankeboy36
Copy link
Contributor

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.
string installed = 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Proposed improvement
Projects
None yet
3 participants