redoPop / SublimeGremlins

Reveal odd and invisible whitespace characters in Sublime Text.
43 stars 3 forks source link

Can't open settings - ST4 #10

Closed luckman212 closed 3 years ago

luckman212 commented 3 years ago

Hi @redoPop 👋

I love this little plugin and have been using it for years I recently switched over to ST4 (4098) and set everything up again from scratch.

Not sure what's wrong, but when I try to go to Package Settings > Gremlins > Settings (or keybinds) it just throws an error.

image

In console: image

I checked and there is no file there. But, even cloning the repo from Github and manually placing the Gremlins.sublime-settings file in my user prefs directory (~/Library/Application Support/Sublime Text/Packages/User) it still doesn't find it.

I'm not sure if ST4 changed the API for plugins to load settings, but thought I would ask...

redoPop commented 3 years ago

Thanks for flagging this! I just published v1.1.1 with a fix.

f58d96f4 describes the issue in a little more detail, but the gist is that I was relying on an undocumented package-relative lookup path to load settings files in the package directory. ST4 doesn't have the same behavior and it's unclear to me whether that's a beta bug or just a difference in implementation so I've added a couple of custom commands to smooth over the difference.

luckman212 commented 3 years ago

Excellent! Thanks very much, I confirm all is working on my end. Nice fix.