Sublime Forum

Error: sublime-keymap6:1

#1

Hi Ma`am/Sir,

Good day !

Can you please help me guys, I can`t open my sublime 2 anymore.

I`m using it yesterday and decided to install CSS3-Package Control, following the ff: steps on this site: https://packagecontrol.io/packages/CSS3

Unfortunately, I accidentally exit my sublime during my step 4 process. Then when I reopen my sublime, this error occurs:

Error tring to parse file: Unexpected trailing charactes in C:\Users\User\Appdata\Roaming\Sublime Text2\Packages\User\Default(Windows).sublime-keymap6:1

I can`t open it now. I tried to re install it, but same thing happened. Help me to fix this please. Thank you guys !

0 Likes

#2

I’d recommend opening up the file C:\Users\User\Appdata\Roaming\Sublime Text2\Packages\User\Default(Windows).sublime-keymap and then looking at the position 6:1 (it’s a line/column reference) and fixing it. Looks like you have Unexpected trailing characters, which means that there is something unexpected at that position in the file.

Worst case scenario, rename the file (change it’s extension) so that Sublime doesn’t try to load it.

Also, you can try pasting the contents into JSONLint to get it to tell you exactly how the file is broken.

0 Likes

#3

Thank you for the response sir.

I opened up the file location and it contains these codes:

[
*** {“keys”: [“alt+shift+f”], “command”: “reindent”, “args”: {“single_line”: false}}***
]
"auto_complete_commit_on_tab": true,
"auto_complete_with_fields": true,

(Should I change this ?)

I tried to change the file extension(changed it on .text extension), and when I open sublime again… this error occurs:

Error tring to parse file: Unexpected trailing charactes in C:\Users\User\Appdata\Roaming\Sublime Text2\Packages\User\Preferences.sublime-settings11:1

0 Likes

#4

also, when I past it into JSONLint, he gives me this result:

Error: Parse error on line 7:
…ine": false }}]"auto_complete_commi…
------------------^
Expecting ‘EOF’, ‘}’, ‘,’, ‘]’, got 'STRING’

0 Likes

#5

Your issue is that the last two lines (the auto complete settings) go in your preferences file, not in your keymap file. That;s why it’s telling you that it’s seeing a string when it doesn’t expect one (the string being "auto_complete_commit_on_tab").

2 Likes

#6

Thank you sir ! Case closed.

0 Likes