microsoft/Terminal
在 GitHub 查看JSON fails to parse with a trailing comment at the end of an array
Open
#11,545 建立於 2021年10月20日
Area-SettingsHelp WantedIssue-BugProduct-TerminalResolution-External
倉庫指標
- Star
- (35,764 star)
- PR 合併指標
- (平均合併 27天 19小時) (30 天內合併 24 個 PR)
描述
Windows Terminal version (or Windows build number)
1.10.2714.0
Other Software
No response
Steps to reproduce
In the settings file, put a comment at the end of an object with a comma after it.
This fails:
"actions": [
{},
// ...
],
Dropping either the , or the comment makes it work.
Expected Behavior
Should be parsed as usual since both terminating commas and comments are allowed, or forbid trailing commas (assuming that comments are a desired feature).
Actual Behavior
Settings could not be loaded from file. Check for syntax errors, including trailing commas.