deadfoxygrandpa / Elm.tmLanguage

Elm language syntax highlighting and tool integration for ST2/3
https://packagecontrol.io/packages/Elm%20Language%20Support
MIT License
122 stars 27 forks source link

error parsing settings on launch #90

Closed fergusmeiklejohn closed 8 years ago

fergusmeiklejohn commented 8 years ago

I'm getting this error every time I launch Sublime:

"Error trying to parse settings: Unexpected trailing characters in Packages/User/Elm Language Support.sublime-settings:1:21"

I've removed and reinstalled the Elm language package but it makes no difference and I also had this problem before the latest version was released.

This Elm Language Support.sublime-settings file is exactly as it is when installed I haven't changed it at all

deadfoxygrandpa commented 8 years ago

Can you post the contents of your Packages/User/Elm Language Support.sublime-settings file? It looks like you have something incorrect inside it, maybe an invalid trailing comma or something? On 25 Jan, 2016 19:36, "Fergus Meiklejohn" notifications@github.com wrote:

I'm getting this error every time I launch Sublime:

"Error trying to parse settings: Unexpected trailing characters in Packages/User/Elm Language Support.sublime-settings:1:21"

I've removed and reinstalled the Elm language package but it makes no difference and I also had this problem before the latest version was released.

This Elm Language Support.sublime-settings file is exactly as it is when installed I haven't changed it at all

— Reply to this email directly or view it on GitHub https://github.com/deadfoxygrandpa/Elm.tmLanguage/issues/90.

fergusmeiklejohn commented 8 years ago

thanks very much! It was just:

"elm_format_on_save": true

But because this is now in Settings-Default anyway I've just deleted it from my Settings-User and the error message is gone :-)

deadfoxygrandpa commented 8 years ago

Oh, OK. For reference, the settings files are supposed to be valid JSON, so if you only have one setting you would need to enclose it in { } brackets.

fergusmeiklejohn commented 8 years ago

ah right! I just copied and pasted it from the ReadMe >< Well I've learned a good lesson then..

thanks for your help

deadfoxygrandpa commented 8 years ago

I guess I should make that more clear.