Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Square yellow color when #FFFFFF but working when #ffffff #119

Open
geeky3 opened this issue Mar 10, 2018 · 2 comments
Open

Square yellow color when #FFFFFF but working when #ffffff #119

geeky3 opened this issue Mar 10, 2018 · 2 comments

Comments

@geeky3
Copy link

geeky3 commented Mar 10, 2018

When i type "#FFFFFF" it gives me annoying yellow box but if I type "#ffffff" than it works perfectly, also uppercase with any other color works, I have issue only with '#FFFFFF". Any idea what is causing this ??

@TeralGoe
Copy link

TeralGoe commented Mar 17, 2019

Yep, I noticed that, too. Looks like this is happening because GutterColor have #ffffff.png in the cache folder and cannot create a new file with same name.

However, you can recreate all files through clearing cache:
Command Palette -> GutterColor: Clear Cache

@marandac
Copy link

marandac commented Jul 14, 2020

Applied a quickfix to this problem by forcing lowercase on the color strings in the line.py code (in Win10, \User\Your Username\AppData\Roaming\Sublime Text 3\Packages\Gutter Color).

Changed those instances:

if matches:
        return matches.group(0)

to

if matches:
        lowercase = matches.group(0)
        lowercase = lowercase.lower()
        return lowercase

Once you update the file and clear your cache as described by @TeralGoe , the problem should be gone.

As reference, I attached the modified line.py file
linepy.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants