Sublime Text 2: Error trying to parse settings

后端 未结 4 2008
半阙折子戏
半阙折子戏 2021-02-05 10:53

How do I fix this error?

Error trying to parse settings: No data in ~/Library/Application Support/Sublime Text 2/Packages/User/JavaScript.sublime-settin

4条回答
  •  感情败类
    2021-02-05 11:37

    Sublime Text 3 (Build 3059):

    My JSON.sublime-settings was containing some XML-structure, no JSON.

    Here the previous content of my file:

    
        name
        JSON String
        scope
        meta.structure.dictionary.json string.quoted.double.json
        settings
        
            foreground
            #E6DB74
        
    
    

    I replaced it with the default content from SublimePrettyJson:

    {
        "use_entire_file_if_no_selection" : true,
        "indent" : 2,
        "sort_keys" : false,
        "ensure_ascii" : false
    }
    

    This solved the problem for me. No more annoying error message. OS: Windows 7.

    On my Ubuntu machines I never had this error, also not on my Mac.

提交回复
热议问题