The config dump
commands doesn't print default values
#2637
Labels
conclusion: invalid
Issue/PR not valid
topic: CLI
Related to the command line interface
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
We have received a PR in arduino/arduino-language-server#188 that wanted to address a nil pointer problem.
After a further investigation, we found out that the
arduino-cli 1.0.0
introduced a regression.The config dump only prints values present in the
arduino-cli.yaml
.Here the diff: arduino/arduino-language-server#188 (comment)
To reproduce
arduino-cli config dump --json
with the 1.0.0 releaseExpected behavior
It should also print the default values for keys that are not present in the config file
Arduino CLI version
1.0.0
Operating system
Linux
Operating system version
23.10
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: