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)
Author by
Globalz
Updated on June 01, 2021Comments
-
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 over 11 yearsCool 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 over 11 yearsNote 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 over 11 yearsYou could also have accessed the file via the ST2 gui: Sublime Text 2 > Preferences > Settings - More > Syntax-specific - User.