Sublime Text 3报错:SublimeLinter配置文件解析失败求助
Hey there! I’ve dealt with this exact SublimeLinter error before, so let me share how I got it sorted out:
What’s causing this?
This error means your Packages\User\SublimeLinter.sublime-settings file has invalid JSON syntax right at the very start (line 1, character 1). Most often, this happens because:
- The file is completely empty (JSON requires at least an empty object
{}) - You accidentally added non-JSON characters (like random spaces, symbols, or plain text) at the beginning of the file
- A previous edit broke the JSON structure (e.g., missing opening/closing braces, unclosed quotes)
Step-by-step fix:
Open the problematic settings file
In Sublime Text, go toPreferences > Package Settings > SublimeLinter > Settings - Userto pull up the faulty config file.Fix the JSON structure
- If the file is empty, paste this default empty JSON object:
{} - If there’s existing content, scan the first line for any stray characters (like a random
!or extra space) and remove them. Double-check that your JSON is valid—just make sure braces and quotes are properly paired (you don’t even need external tools for this quick check).
- If the file is empty, paste this default empty JSON object:
Save and restart
Save the file, close and reopen Sublime Text. The error should disappear immediately.If all else fails: Clean up residual config
When you uninstall SublimeLinter, it doesn’t always delete your user settings file. To do a full reset:- Uninstall SublimeLinter via Package Control
- Navigate to your Sublime Text
Packages\Userfolder (find this by going toPreferences > Browse Packagesthen opening theUsersubfolder) - Delete the
SublimeLinter.sublime-settingsfile manually - Reinstall SublimeLinter via Package Control—it will generate a fresh, valid default settings file
内容的提问来源于stack exchange,提问作者patrick brady

