Sublime Forum

Error trying to parse settings: Unexpected trailing characters in Packages/User/Preferences.sublime-settings:11:1

#1

This opens every time I start up Sublime Text. When I go to settings > preferences > key bindings, I have no user settings at all.

Thanks

0 Likes

#2

You’re on the right track, but the file that is having problems is your preferences file, not the key bindings. If you use Preferences > Settings instead, that will show you the file that’s having problems.

0 Likes

#3

Ah thanks. It’s just an empty line.

0 Likes

#4

I copied over the default settings and it’s working now. Thanks!

0 Likes

#5

Based on your screenshot, it was mad because there are two sets of { and } in the file (the first on lines 3 through 5 and the rest starting on line 11). Thus the error was caused by it thinking the file ends at line 5, but finding more data on line 11.

Note that the only settings you need in your custom User preferences are settings you want to change; if something doesn’t appear in your user settings, the default is used again. That’s why the default user settings is just an empty { } JSON dictionary.

1 Like

#6

Really good to know, thanks again for your help.

1 Like

#7

This helped me fix a similar issue. Thanks so much @OdatNurd !

1 Like