Skip to content

Incorrect json in settings.json leads to file getting overwritten #1054

@0xferrous

Description

@0xferrous

What happened?

I lost my settings.

Steps to reproduce

  1. add a trailing comma to your json
  2. spawn pi
  3. watch your settings.json get overwritten with { "lastChangelogVersion": "0.50.2" } because it couldn't load the previous json and started with empty object and overwrote it is my guess.

Expected behavior

Refuse to run pi until the syntax is fixed, or, dont overwrite the broken file causing loss of settings

Version

0.50.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions