tiddly-gittly / TidGi-Desktop

TidGi is an privacy-in-mind, automated, auto-git-backup, freely-deployed knowledge management Desktop note app, based on Tiddlywiki, with REST API for web-clipping and Anki connect. 「 太记 」是一个基于「 太微 TiddlyWiki 」的知识管理桌面应用,能保护隐私内容、高级自动化、自动Git云备份、部署为博客,且可通过RESTAPI与Anki等应用连接。(迭代开发中欢迎试用,开发进度见下方链接)(Under active development, see website below for details)
https://tidgi.fun
Mozilla Public License 2.0
1.74k stars 111 forks source link

bug: empty config file prevent tidgi open #354

Closed linonetwo closed 1 year ago

linonetwo commented 1 year ago

Environment 环境信息

"level":"error","message":"Setting file format bad: C:\Users\halus\AppData\Roaming\TidGi\settings\settings.json: Unexpected end of JSON input","timestamp":"2023-03-02T06:56:57.063Z"} {"level":"info","message":"Try to fix JSON content.","timestamp":"2023-03-02T06:56:57.064Z"} {"jsonContent":"","level":"error","message":"Setting file format bad, and cannot be fixed: Unexpected end of JSON input","timestamp":"2023-03-02T06:56:57.066Z"}

settings.zip

Description 描述

settings.json is empty

Steps to Reproduce 复现方式

create empty settings.json

Additional Context 额外上下文

No response

linonetwo commented 1 year ago

Try https://github.com/nathanbuchar/electron-settings/pull/174