Skip to content

Conversation

@kittaakos
Copy link
Contributor

Motivation

Relaxed the settings.json parsing in the IDE2's backend. The problem occurred when the settings.json contained comments or a trailing comma.

Change description

Use jsonc-parser and allow comments, a trailing comma, and empty content.

Other information

Reviewer checklist

Closes #1945

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

@kittaakos kittaakos added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Mar 10, 2023
@kittaakos kittaakos self-assigned this Mar 10, 2023
@kittaakos kittaakos requested review from AlbyIanna and per1234 March 10, 2023 13:22
Occurred when `settings.json` contained comments or a trailing comma.

Closes #1945

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Copy link
Contributor

@AlbyIanna AlbyIanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code LGTM 👍

@kittaakos kittaakos merged commit fb10de1 into main Mar 13, 2023
@kittaakos kittaakos deleted the #1945 branch March 13, 2023 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

settings.json parsing fails on the IDE2 backend if settings.json has comments

3 participants