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

When parsing launch.json we need to account for invalid json (unnecessary commas) #4543

Closed
DonJayamanne opened this issue Feb 26, 2019 · 3 comments
Assignees
Labels
area-debugging bug Issue identified by VS Code Team member as probable bug

Comments

@DonJayamanne
Copy link

For #332
Parsing launch.json fails when there are extra commas in array elements.
Unfortunately this is invalid json, hence JSON.parse bombs out and we display messages to the user (misleading messages).

@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug needs PR area-debugging labels Feb 26, 2019
@DonJayamanne
Copy link
Author

DonJayamanne commented Apr 4, 2019

Prescribed solution:

  • Use jsonc-parser (used in extension today)

@qubitron qubitron added important Issue identified as high-priority and removed good first issue labels Apr 10, 2019
@qubitron
Copy link

Breaks "Debug Test"

@ericsnowcurrently
Copy link
Member

I was able to verify that on the last release "Debug Test" (via test explorer) fails if I have a trailing comma; and that it works if I use the most recent insiders .vsix.

@ghost ghost removed the needs PR label Apr 22, 2019
@ericsnowcurrently ericsnowcurrently removed their assignment Apr 22, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-debugging bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants