Closed yordanzhelevdev closed 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?
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.
@bonermobile, do your png files can be opened fine from an image editor or preview? (are those valid png files?)
Yes, I was able to open them in Paint, ImageGlass and Photoshop.
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:
...to see what it shows, in the console.
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.
@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
@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
I've pushed v1.1.3 with that change already, you can also wait for it to be published in Package Control.
For me, gutter appears correctly but text for colors appear with a grey background.
Also if I try to open preferences using the preferences command an error appear:
@AndresPF, are you in 1.1.3? where did you try to open the settings? from the command palette or from the Preferences menu?
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.
@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.
1.1.3 fixed my issues.
@AndresPF, what color scheme are you using?
@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
Every time you switch color schemes you must call a “ColorHighlight: Reset” command.
Okay now I get the colour in the bar but the background doesn't work. I don't get any errors when I'm resetting but I can't access the settings file like @AndresPF. Edit: It works with other scheme
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?
The problem is when I select a scheme with extension .tmTheme
. The addon works with the default .sublime-color-scheme
schemes
I think v1.1.4 could fix this, please verify for me when it gets availabe
v1.2.0 should fix:
.tmTheme
@Kronuz Awesome! will let you know results when its available.
Tried out v1.1.4 already.
Ok, let me know if 1.2.0 works please!
Sadly I still have the same problem with the background
nvm its fixed. good job hehe
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.
OS: Windows 10 Sublime Text Version: 3176 This is what it shows me: