Kronuz / ColorHighlight

🎨 Lightweight Color Highlight colorizer for Sublime Text
MIT License
118 stars 12 forks source link

It doesn't show me the colors #1

Closed yordanzhelevdev closed 6 years ago

yordanzhelevdev commented 6 years ago

OS: Windows 10 Sublime Text Version: 3176 This is what it shows me: image

Kronuz commented 6 years ago

What color scheme are you using? This is weird, it seems it’s not saving the gutter icons either. Do you have a Packages/User/ColorHighlight.cache directory with png files in it?

bonermobile commented 6 years ago

I have a similar issue, text highlighting works fine but my gutter icons are broken. Same operating system and build. I do have a cache folder filled with PNGs.

Kronuz commented 6 years ago

@bonermobile, do your png files can be opened fine from an image editor or preview? (are those valid png files?)

bonermobile commented 6 years ago

Yes, I was able to open them in Paint, ImageGlass and Photoshop.

Kronuz commented 6 years ago

Thing is I currently don’t have access to a Windows box, but could you install from GitHub and add a print of relative_icon_path just above line:

https://github.com/Kronuz/ColorHighlight/blob/37118591035d143b2f7f6858fb4864eb0f20525d/ColorHighlight.py#L357

...to see what it shows, in the console.

bonermobile commented 6 years ago
Unable to decode Packages/Theme - Default/common/Packages\User\ColorHighlight.cache\col_6EE1D6FF_circle.png.png
Unable to decode Packages/Theme - Default/common/Packages\User\ColorHighlight.cache\col_2D9B78FF_circle.png.png
Unable to decode Packages/Theme - Default/common/Packages\User\ColorHighlight.cache\col_91BA5EFF_circle.png.png
Unable to decode Packages/Theme - Default/common/Packages\User\ColorHighlight.cache\col_E46D04FF_circle.png.png
Unable to decode Packages/Theme - Default/common/Packages\User\ColorHighlight.cache\col_AF1964FF_circle.png.png
etc

I trimmed it down but it's just more of the same error for each file in the cache folder.

yordanzhelevdev commented 6 years ago

@Kronuz I am using Oceanic Next colour scheme. I tried with other scheme but the problem is still there. btw there is something strange. In the package settings, I can't see that package

Kronuz commented 6 years ago

@bonermobile, in that line (line 357), could you please replace the line with the next one and try again:

    return relative_icon_path.replace('\\', '/')

It could be it can’t figure it’s a path if it’s using backslashes.

@yordanzhelevdev, do you also have the same errors in the console? About the settings not being there, it’s a menu that needs to be manually added, and I believe the plugin isn’t adding it yet. You currently can go to the settings from the command palette by entering: Preferences ColorHighlight

Kronuz commented 6 years ago

I've pushed v1.1.3 with that change already, you can also wait for it to be published in Package Control.

AndresPF commented 6 years ago

For me, gutter appears correctly but text for colors appear with a grey background.

image

Also if I try to open preferences using the preferences command an error appear: image

Kronuz commented 6 years ago

@AndresPF, are you in 1.1.3? where did you try to open the settings? from the command palette or from the Preferences menu?

Kronuz commented 6 years ago

Also, @bonermobile, @AndresPF, @yordanzhelevdev, try command ColorHighlight: Reset (from the command palette) with the console open, to see if that enables colors or shows any errors in the console.

AndresPF commented 6 years ago

@Kronuz I reinstalled it with package control so I guess I am in 1.1.3

The error appears on both the command palette and preferences menu.

Command ColorHighlight: Reset did nothing in my case, no errors on console either.

bonermobile commented 6 years ago

1.1.3 fixed my issues.

Kronuz commented 6 years ago

@AndresPF, what color scheme are you using?

AndresPF commented 6 years ago

@Kronuz I'm using one called Darkside from the Dayle Rees Color Schemes

I tried using the default ones from sublime and still my problem persist. I checked and I do indeed have 1.1.3 installed

Kronuz commented 6 years ago

Every time you switch color schemes you must call a “ColorHighlight: Reset” command.

yordanzhelevdev commented 6 years ago

Okay now I get the colour in the bar but the background doesn't work. image I don't get any errors when I'm resetting but I can't access the settings file like @AndresPF. image Edit: It works with other scheme image

Kronuz commented 6 years ago

There are two types of color schemes: .tmTheme and .sublime-color-scheme; @yordanzhelevdev, could you please try to investigate if such color scheme type has anything to do with when the problem persists?

yordanzhelevdev commented 6 years ago

The problem is when I select a scheme with extension .tmTheme. The addon works with the default .sublime-color-scheme schemes

Kronuz commented 6 years ago

I think v1.1.4 could fix this, please verify for me when it gets availabe

Kronuz commented 6 years ago

v1.2.0 should fix:

AndresPF commented 6 years ago

@Kronuz Awesome! will let you know results when its available.

Tried out v1.1.4 already.

Kronuz commented 6 years ago

Ok, let me know if 1.2.0 works please!

yordanzhelevdev commented 6 years ago

Sadly I still have the same problem with the background

yordanzhelevdev commented 6 years ago

nvm its fixed. good job hehe

Kronuz commented 6 years ago

Great! closing now.

Ad: Don’t forget to try “Text Marker” package, I can’t live without that one, it makes refactoring and bug hunting so much easier by letting you highlight words or partial words in colors.