Skip to content

repo.json inconsistently decoded (JSON5 vs JSON) #4084

@usfbih8u

Description

@usfbih8u

Description

When repo.json is decoded, the plugin installer uses JSON5, but the plugin manager uses JSON for configuration.

References:

dec := json.NewDecoder(bytes.NewReader(data))

decoder := json5.NewDecoder(resp.Body)

If you use a comment in repo.json, the plugin won't be loaded but can be installed.

I assume JSON5 should be used in both(?).

Environment

  • Version: 2.0.15
  • OS: It does not matter.
  • Terminal: It does not matter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions