Sublime Forum

"Unexpected trailing characters" error on startup

#1

“Unexpected trailing character” errors I see are a common problem with Sublime Text. I have just installed Sublime Text 3 on Windows 7 from Build 3114 Setup. When I start the application there is an error “Error trying to parse settings: Unexpected trailing characters in Packages\User\Preferences.sublime.settings:5:1”.
Please advise.

0 Likes

#2

You have an error in the formatting of the JSON in your Preferences file on line 5, first character.

0 Likes

#3

What I see in the main window of Sublime Text is:
}
“color_scheme”: “Packages/Color Scheme - Default/IDLE.tmTheme”
}

I assume that this is the contents of the Preferences file, except that there is no
line 5. Am I right? The error you say I have, whatever it really is, is in the files I downloaded in the intallation package “Sublime Text Build 3114 Setup.exe” for Windows. I will need advice from someone who can give technical support.

0 Likes

#4

The first curly brace in your settings file should be reversed.

0 Likes

#5

I miscopied the first character. Also the second line is indented which does not show up here. However, the error no longer occurs, for some reason.

0 Likes