Closed dportalesr closed 2 years ago
It seems that the error message mentioned is not related to my issue.
I managed to fix my problem by adding a custom user color rule:
"user_color_rules": [
{
"name": "XML-tmTheme",
"base_scopes": ["text.plist"],
"color_class": "css-level-4",
"scanning": [
"text.plist -comment -string"
]
},
]
I took a look to the settings file for the package and I noticed some changes compared to my customized version. But the actual problem seems to be related to my custom tmTheme that I've used for a long time, which I think it's now using an old syntax, since the default color rule defined in color_helper.sublime-settings
seems different:
{
"name": "tmTheme",
"color_trigger": "(?i)(?:\\b(?<![-#&$])[\\w]{3,}(?![(-])\\b|(?!<&)\\#)",
"extensions": [".tmTheme"],
"base_scopes": ["text.xml"],
"color_class": "tmtheme",
"scanning": [
"text.xml -meta.tag.xml -comment -string, string.unquoted.cdata.xml"
]
},
Probably it's a good idea to add that rule I added to the defaults to support old sublime theme files syntax.
Yes, there is a bug. A recent refactor of the underlying color library caused some changes in custom classes. Our built-in custom classes do not properly return the correct "match" value causing preview failures. I have a fix locally and will cut a release a little bit later.
Fix has been released but Package Control won't probably see it for a couple of hours.
Thank you! You rock 👊
Description
ColorHelper stopped working for XML syntax, specifically for sublime theme files (tmTheme). It used to work fine not long ago (not sure if this plugin was updated on my side recently).
It's working for CSS syntaxes (SCSS, CSS, SASS).
SublimeText's console shows this multiple times:
Support Info
Steps to Reproduce Issue