redoPop / SublimeGremlins

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

Broken gutter icon. #2

Closed sowizz closed 7 years ago

sowizz commented 8 years ago

Hi,

I'm using material UI theme and syntax-higlighting, and gutter icon shows as broken, see:

image

Is there anything I can do about it?

sowizz commented 8 years ago

If someone encounters this issue, there is something wrong with the path to the icon. Changing it into: GUTTER_ICON = 'Packages/Gremlins/icons/white.png' resolves the problem.

keith-hall commented 7 years ago

It is even broken with the Default theme. I changed the line here (https://github.com/redoPop/SublimeGremlins/blob/531f7e51191942c8937cbe2fe59afc52f306ff66/Gremlins.py#L37) to:

GUTTER_ICON = os.path.join('Packages', PACKAGE_DIR, 'icons', 'white.png').replace('\\', '/')

and that fixed it for me. ST wants Unix style path separators, but os.path.join gives Windows path separators on Windows, for obvious reasons.

redoPop commented 7 years ago

Huge apologies for the long delay in addressing this: I'd misconfigured my GitHub notifications and missed this issue entirely. D'oh!

Version 0.0.6 is now on Package Control, and incorporates 441827d which should fix this issue for all users. Thanks for debugging this, @sowizz and @keith-hall!