Skip to content

VSCode complains about own settings.json/workspaceSettings.json (trailing comma) #81920

Closed

Description

@SHxKM
  • VSCode Version: 1.38.1
  • OS Version: macOS 10.14.5

Steps to Reproduce:

  1. Start a new Python projects
  2. Open settings.json
  3. See errors:

Screen Shot 2019-10-03 at 22 50 06

Referring to this (uneditable) line:

Screen Shot 2019-10-03 at 22 51 37

I don't recall ever enabling an extension jsonc, nor can I find any reference to it so I think it should be what VSCode uses by default. How can I get rid of this?

Does this issue occur when all extensions are disabled?:

No, because linting isn't enabled.

Activity

  1. Tyriar commented on Oct 3, 2019

    @Tyriar
    Contributor

    VS Code settings are jsonc, you need to remove the trailing comma from the settings.

  2. SHxKM commented on Oct 3, 2019

    @SHxKM
    Author

    Daniel Imms (@Tyriar) But I cannot edit that file because it’s “read only”. Can you reopen this issue please?

    Also - the commas do not appear in the settings.JSON when I open it in the side-by-side JSON view. When I open the file in Sublime Text, the comma isn't there.

    vsc

  3. SHxKM commented on Oct 3, 2019

    @SHxKM
    Author

    I have now ran the JSON file through a validator. Fixed all issues (unrelated to what's being reported by VSCode), and I still get this warning.

    Update1: I have now cleaned my settings.json file completely, removed all extensions, and VSCode instantly complains when I switch to the JSON version of settings. I didn't even touch the file.

    Update2: A completely new, clean install of VSCode exhibiting the same behaviour:

    Screen Shot 2019-10-04 at 01 16 46

    Update3: VSCode duplicates the same error, as many times as the settings pane is opened (see that most errors point to the same line):

    Screen Shot 2019-10-04 at 01 50 13

  4. sandy081 commented on Oct 4, 2019

    @sandy081
    Member

    /duplicate

    #80419

  5. added
    *duplicate
    on Oct 4, 2019
  6. vscodebot commented on Oct 4, 2019

    @vscodebot

    Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

    Happy Coding!

  7. locked and limited conversation to collaborators on Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicate

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions