Skip to content
Discussion options

You must be logged in to vote

手动恢复那一步补个边界情况。先退出 DSH 再编辑配置。如果重启后还没保存过设置,活动 patch 可能仍是带注释的 [] 空模板,这时需要把 [] 替换成备份里的 - insert: 列表。直接在文件末尾追加会让 YAML 解析失败。当前文件已有 - id: 列表时,可以把 - insert: 放在同一顶层列表里。

我用 rc.5 的解析函数和锁定的 js-yaml 4.3.2 做了内存对照。空模板后直接追加会报 end of the stream or a document separator is expected,替换 [] 和往已有列表追加都能解析。恢复说明里可以带上这个细节。空模板 · 解析入口

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@9vn2nfzvt5-lgtm
Comment options

@Muguett-DBY
Comment options

Comment options

You must be logged in to vote
1 reply
@Muguett-DBY
Comment options

Answer selected by 9vn2nfzvt5-lgtm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants