arduino / arduino-cli

Arduino command line tool
https://arduino.github.io/arduino-cli/latest/
GNU General Public License v3.0
4.33k stars 374 forks source link

JSON config file not loading #2636

Closed dojyorin closed 3 months ago

dojyorin commented 3 months ago

Describe the problem

arduino-cli.json not loading even though it exists in correct location.

To reproduce

  1. Write settings in arduino-cli.json
  2. place it in ~/AppData/Local/Arduino15/
  3. arduino-cli config dump

Expected behavior

JSON config file is loaded. It was working fine in previous version.

Arduino CLI version

v1.0.0

Operating system

Windows

Operating system version

11

Additional context

image

Issue checklist

per1234 commented 3 months ago

Hi @dojyorin. Thanks for taking the time to submit a report.

In preparation for the 1.0.0 release, some significant changes were made to Arduino CLI in order to improve the tool and its maintainability. One of these changes was dropping support for the alternative configuration file data formats (https://github.com/arduino/arduino-cli/pull/2587). YAML is now the only supported data format.

So please convert the file to YAML format, with the appropriate file extension for that format: .yml or .yaml. After that, the configuration file should once more be recognized by Arduino CLI.

This breaking change is documented in the migration guide here:

https://arduino.github.io/arduino-cli/dev/UPGRADING/#configuration-file-now-supports-only-yaml-format

You might want to review the rest of the guide to check whether you are affected by any of the other changes.

dojyorin commented 3 months ago

Thank you for information. I will check it out.