Skip to content
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

JSON config file not loading #2636

Closed
3 tasks done
dojyorin opened this issue Jun 12, 2024 · 2 comments
Closed
3 tasks done

JSON config file not loading #2636

dojyorin opened this issue Jun 12, 2024 · 2 comments
Assignees
Labels
conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@dojyorin
Copy link

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

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details
@dojyorin dojyorin added the type: imperfection Perceived defect in any part of project label Jun 12, 2024
@per1234 per1234 self-assigned this Jun 12, 2024
@per1234
Copy link
Contributor

per1234 commented Jun 12, 2024

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 (#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.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2024
@per1234 per1234 added conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself labels Jun 12, 2024
@dojyorin
Copy link
Author

Thank you for information.
I will check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants