Sublime Forum

Error trying to parse file pop up

#1

Error trying to parse file: unexpected character, expected a comma or closing bracket in Packages/Use/Default(OSX).sublime-keymap:3:2

This error pops up everytime I open up Sublime Text and can’t seemt to figure out why?
Anyone have any solutions?

0 Likes

#2

It seems you’ve edited your custom keybindings to be invalid. I suggest going to Preferences > Key Bindings and making that file valid JSON.

0 Likes

#3

here is what I have in that package…
[
{ “keys”: [“alt+s”], “command”: “auto_save” }
{ “keys”: [“alt+s”], “command”: “auto_save”, “args”: {“all_files”: true, “backup”: true} }
{ “keys”: [“ctrlΩ+shift+s”], “command”: “auto_save” }
{ “keys”: [“ctrl+shift+s”], “command”: “auto_save”, “args”: {“all_files”: true, “backup”: true} }
]
[
{ “keys”: [“ctrl+shift+s”], “command”: “auto_save” }
]
[
{
“keys”: [“super+shift+r”], “command”: “browser_refresh”, “args”: {
“auto_save”: true,
“delay”: 0.0,
“activate”: true,
“browsers” : [“chrome”]
}
}
]

how do I make it a JSON file?

0 Likes

#4

I suggest either learning JSON (it’s a very simple format) or just looking at the left pane as an example. You have missing commas and extraneous lists in there.

0 Likes