Sublime Forum

Error need help ( i am new with sublime)

#1

Hi, i am new to sublime text. and after a bit fiddling arround. i dont know what i exactly did but now i get a error message.

Error trying to parse settings: Unexpected trailing characters in Packages\User\HTML (rails).sublime-settings:1:16

can someone help me with this?

0 Likes

#2

Make sure your sublime-settings files follow this format:

{
	"key_1": "value",
	"key_2": true,
	"array":
	[
		"array_value_1",
		"array_value_2",
	],
	"key_3": 1234,
}

 

  • All settings are enclosed within a pair of braces ( @ first & last lines )

 

Each setting should have:

  [1] a setting key enclosed in quotes ( all lowercase )
  [2] a colon between the setting key & value
  [3] a string value enclosed in quotes OR a numeric value OR a lowercase boolean value
  [4] a comma

 

Arrays follow a similar structure:

  • [1] & [2], followed by a line break
  • an opening bracket, followed by a line break
  • all values of the array, conforming to [3] & [4] ( separated by line breaks )
  • a closing bracket followed by a comma

 

Note: commas are not technically required on [A] the last setting of the sublime-settings file & [B] the last setting of each array.  However, they will not cause an issue if present.

1 Like

#3

hi thanks for your reply, but where do i find this sublime-settings.
i really dont understand what i have to change.
i understand what you mean by all settings should be enclosed within a pair of braces

0 Likes

#4

In your original post, you mentioned that the error was at:
HTML (rails).sublime-settings

Is that one of the files you edited while fiddling around?

If so, verify that the file contents match the guidelines from my previous post.

1 Like

#5

The error occurs at line 1, position 16 of the file, probably a comma, but could be something else.

0 Likes

#6

No i did not fiddle in this file. And this file contains only numbers. It does not contain any brackets or anything

0 Likes

#7

Post a Gist of it or something.

0 Likes

#8
0 Likes

#9

That doesn’t seem right…

It looks like a compiled file of some sort, but sublime-settings files should only contain json data.

Try moving the file to your desktop & restart SublimeText.

If that works & you never had any intention of modifying the file, you can probably delete it. The original should still be in SublimeText’s default packages.

0 Likes