【问题标题】:Error trying to parse settings尝试解析设置时出错
【发布时间】:2014-01-27 09:06:27
【问题描述】:

这是我打开程序时得到的确切错误:

Error trying to parse settings: Expected value in ~/Library/Application Support/Sublime Text 2/Packages/Default/Preferences.sublime-settings:1:13677

【问题讨论】:

  • 您提供的内容是Packages/User/Preferences.sublime-settings,而不是Packages/Default/Preferences.sublime-settings。请改为检查该文件 (Sublime Text 2 -> Preferences -> Settings - Default)
  • 刚刚检查了文件,正好有 13,676 个字符。不确定要检查什么。我无法在这里发布所有代码。特定部分会有帮助吗?
  • 这可能是一个非常简单的修复方法,即文件中缺少逗号或错误字符。创建gist 并将链接添加到您的原始帖子。
  • 感谢 AGS。我将要点链接添加到原始问题。任何帮助将不胜感激。

标签: sublimetext2


【解决方案1】:

您可以删除 cmets 并使用 http://zaach.github.io/jsonlint/ 之类的服务来验证 JSON。

【讨论】:

  • 做到了。谢谢大家的帮助。
【解决方案2】:

Packages/Default/Preferences.sublime-settings。检查该文件(Sublime Text 2 -> Preferences -> Settings - Default

{
    "bold_folder_labels": true,
    "caret_style": "phase",
    "fade_fold_buttons": false,
    "font_face": "Consolas",
    "font_size": 12,
    "highlight_line": true,
    "ignored_packages":
    [
        "Vintage"
    ],
    "line_padding_bottom": 1,
    "line_padding_top": 1
}

【讨论】:

    猜你喜欢
    • 2022-10-01
    • 2012-09-03
    • 1970-01-01
    • 1970-01-01
    • 2017-09-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多