SublimeText / InsertNums

Sublime Text plugin for inserting sequences. Supporting alphanumerics and hex, with bitwise operations!
https://james-brooks.uk
MIT License
123 stars 15 forks source link

Error loading new version in Windows #16

Closed hachesilva closed 10 years ago

hachesilva commented 10 years ago

DESCRIPTION: Working with Windows 7, My Sublime Text 2 automatically updated InsertNums to the latest version. After closing and reopening Sublime, I got this error: Error trying to parse file: Expected value in C:\Users\MYUSERNAME\AppData\Roaming\Sublime Text 2\Packages\Insert Nums\Default (Windows).sublime-keymap:1:1

Opening the file in Mac OS X 10.8 I can see the file content being the keymaps for the plugin. But opening it in Windows 7 I can only see weird characters.

POSSIBLE SOLUTION: By opening the file in Mac and saving it with UTF-8 enconding (File / Save with encoding / UTF-8) seems to solve the problem.

jbrooksuk commented 10 years ago

Ok. I'll check the encoding of the file now.

jbrooksuk commented 10 years ago

Did you save as UTF8 with BOM?

jbrooksuk commented 10 years ago

I've just pushed an update, can you try again please.

hachesilva commented 10 years ago

Yup, it is working fine now.

jbrooksuk commented 10 years ago

Awesome! Thanks @hachesilva :)

FichteFoll commented 10 years ago

Okay, this is new to me. Why would a missing newline at the end of the line fail in ST2? Or was there a BOM at the beginning of the file that github just skipped in ther diff view?

1d744901f8373c4ba4d4331adb851edd881b2c73

jbrooksuk commented 10 years ago

@FichteFoll I don't think it will, however adding a new line was the only way I could get it to commit with the new encodings.