SerialDev / ijanet-mode

Interactive Janet mode
25 stars 7 forks source link

File encoding. Package won't load #5

Open agzam opened 3 years ago

agzam commented 3 years ago

I spent two hours trying to understand why this package won't load in Spacemacs. It kept complaining that Package lacks a "Version" or "Package-Version" header. Which is not true. It does have proper headings.

It seemed like I tried everything, but it wouldn't work. I refused to give up. Finally, I checked the buffer-file-coding-system and it says "utf-8-dos". Wat?

AFAIK Spacemacs uses Quelpa. And apparently, that thing doesn't understand DOS files (?). Or maybe I have to set core.autocrlf in .gitconfig, or do something else? I don't know. It just doesn't work on my Mac. Only re-encoding the file worked.

I'm going to leave this here, in case someone else stumbles on that. But perhaps converting the .el file to another (more modern) coding system would be wise.