atombender / sublime_text_alternative_autocompletion

Adds TextMate-like autocompletion to Sublime Text 2 and 3.
MIT License
147 stars 23 forks source link

Error Configuring -- Unexpected Trailing Characters? #13

Closed philipobrien closed 12 years ago

philipobrien commented 12 years ago

Hi, I'm following the Ruby on Rails (Hartl) tutorial and while setting up Sublim Text with your plugin I'm getting the following error

Error trying to parse file: Unexpected trailing characters in ~/Library/Application Support/Sublime Text 2/Packages/User/Default (OSX).sublime-keymap:7:2

I have copied the exact escape sequence code from the README to Sublime -> Preferences -> Key Bindings -> User

atombender commented 12 years ago

The config file needs to be valid JSON. You need to make sure that commas etc. are positioned correctly.

philipobrien commented 12 years ago

Sorry Alex could you elaborate a little? I'm not familiar with JSON

atombender commented 12 years ago

The entire config file is JSON. If you don't know JSON you will have problems generally editing Sublime Text's settings.

Anyway, here's a tip: Start with your original configuration. Then go to the top of the file, find the first {. Immediately after the {, insert my example key mappings, including the last comma (,).

philipobrien commented 12 years ago

Sorted it now, thanks Alex!