Sublime Text 2: Error trying to parse settings

36,485

Most likely you or something has created an empty file in your User config directory.

The config files must be valid JSON. The file in the question is empty and is not JSON.

Try deleting the file or get a fixed version from somewhere (not sure for what the file is being used for)

Share:
36,485
Globalz
Author by

Globalz

Updated on June 01, 2021

Comments

  • Globalz
    Globalz almost 3 years

    How do I fix this error?

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

  • Globalz
    Globalz over 11 years
    Cool thanks Mikko thats what I suspected. To fix I typed into terminal: sudo vim ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/JavaScript.sublime-settings And added {} to the file. I guess I prob could have deleted the file as well.
  • Mikko Ohtamaa
    Mikko Ohtamaa over 11 years
    Note that you don't need to use sudo for files residing in your own home directory - they should be always writable by you
  • Rik Smith-Unna
    Rik Smith-Unna over 11 years
    You could also have accessed the file via the ST2 gui: Sublime Text 2 > Preferences > Settings - More > Syntax-specific - User.