settings.json parsing fails on the IDE2 backend if settings.json has comments #1945
Closed
3 tasks done
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
VS Code, Theia, and IDE2 use a relaxed version of JSON for storing the settings in the
settings.json
file: https://code.visualstudio.com/Docs/languages/json#_json-with-commentsIf I have the following
settings.json
content, it is entirely valid but does not work on the IDE2's backend:JSONC:
VS.
JSON:
To reproduce
There are multiple silent problems, but here is a user-facing bug:
arduino.sketch.inoBlueprint
and verify that it works:| when you create a new sketch, your preferred default.ino
content is used for the new sketch.settings.json
and command out any other preference with//
.Expected behavior
Arduino IDE version
2.0.4
Operating system
macOS
Operating system version
12.6.3
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: