You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Sublime Text 3报错:SublimeLinter配置文件解析失败求助

Fix for "Error trying to parse settings: Expected value in Packages\User\SublimeLinter.sublime-settings:1:1" in Sublime Text 3

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:

  1. Open the problematic settings file
    In Sublime Text, go to Preferences > Package Settings > SublimeLinter > Settings - User to pull up the faulty config file.

  2. 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).
  3. Save and restart
    Save the file, close and reopen Sublime Text. The error should disappear immediately.

  4. 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\User folder (find this by going to Preferences > Browse Packages then opening the User subfolder)
    • Delete the SublimeLinter.sublime-settings file manually
    • Reinstall SublimeLinter via Package Control—it will generate a fresh, valid default settings file

内容的提问来源于stack exchange,提问作者patrick brady

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.29 08:01:56