Home Download Buy Blog Forum Support

[CSS, theme] use real colors to highlight colors props

Re: [CSS, theme] use real colors to highlight colors props

Postby facelessuser on Sat Nov 12, 2011 4:50 pm

Error loading colour scheme
Packages/C:\Users\tre\AppData\Roaming\Sublime Text 2\Color Scheme - Default\Colorized-Monokai.tmTheme: Error parsing plist xml:
Falied to open file In file
"Packages/C:\Users\tre\AppData\Roaming\Sublime Text 2\Color Scheme - Default\Colorized-Monokai.tmTheme"


Isn't this what you posted as your error? This is a plist parsing error, meaning the the xml structure of the plist is corrupt. Maybe I don't know what you are doing, but the error is telling me the plist is corrupt.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: [CSS, theme] use real colors to highlight colors props

Postby ask on Sat Nov 12, 2011 5:04 pm

Thanks for your feedback.

It crashes when used with RGBA:

Fixed, thanks.

Also gives the this error when a file with colorization is edited:

Strange, seems if fails to find your color-scheme because of bad path:
"Packages/C:\Users\tre\AppData\Roaming\Sublime Text 2\Color Scheme - Default\Colorized-Monokai.tmTheme"

Can you go to
Code: Select all
C:\Users\tre\AppData\Roaming\Sublime Text 2
and check if there is Packages folder.
ask
 
Posts: 26
Joined: Wed Sep 14, 2011 12:40 pm

Re: [CSS, theme] use real colors to highlight colors props

Postby facelessuser on Sat Nov 12, 2011 5:30 pm

I apologize, I didn't see the post where you mentioned you figured out how to do it. I will download and give it a try. I am intrigued at how you did it.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: [CSS, theme] use real colors to highlight colors props

Postby ask on Sat Nov 12, 2011 6:02 pm

Actually i did it, like you wrote few posts before. So nothing innovative :)
And it is still quite buggy. So more testers is good.
ask
 
Posts: 26
Joined: Wed Sep 14, 2011 12:40 pm

Re: [CSS, theme] use real colors to highlight colors props

Postby facelessuser on Sat Nov 12, 2011 6:04 pm

Clever. Dynamic theme file changing. It is a shame API doesn't make this easier on you, but it looks like it didn't slow you down too much. Very cool, hadn't considered this approach.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: [CSS, theme] use real colors to highlight colors props

Postby tretretre on Sat Nov 12, 2011 6:12 pm

ask wrote:Strange, seems if fails to find your color-scheme because of bad path:
"Packages/C:\Users\tre\AppData\Roaming\Sublime Text 2\Color Scheme - Default\Colorized-Monokai.tmTheme"

Can you go to
Code: Select all
C:\Users\tre\AppData\Roaming\Sublime Text 2
and check if there is Packages folder.


After some more testing, I've found out that it only occurs when having an extra 'Default.sublime-theme' in the packages/user directory.
tretretre
 
Posts: 23
Joined: Fri Oct 21, 2011 7:13 pm

Re: [CSS, theme] use real colors to highlight colors props

Postby ask on Sat Nov 12, 2011 6:45 pm

facelessuser wrote:Clever. Dynamic theme file changing.

At the very beginning of writing this plugin, i did't pay attention to add_regions command, so i generated syntax file too (:
It is a shame API doesn't make this easier on you, but it looks like it didn't slow you down too much. Very cool, hadn't considered this approach.

I'm trying to generate theme file only if it's really necessary.
ask
 
Posts: 26
Joined: Wed Sep 14, 2011 12:40 pm

Re: [CSS, theme] use real colors to highlight colors props

Postby ask on Sat Nov 12, 2011 6:52 pm

After some more testing, I've found out that it only occurs when having an extra 'Default.sublime-theme' in the packages/user directory.

Hm, yeah. Now it assumes that your color scheme is located in Color Scheme - Default folder.
Will fix it in near future.
Thanks
ask
 
Posts: 26
Joined: Wed Sep 14, 2011 12:40 pm

Re: [CSS, theme] use real colors to highlight colors props

Postby facelessuser on Sat Nov 12, 2011 8:30 pm

At the very beginning of writing this plugin, i did't pay attention to add_regions command, so i generated syntax file too (:

Yeah, add_regions is the way to go. I use that any time I need to highlight anything in a plugin.

I'm trying to generate theme file only if it's really necessary.

So, do you actually switch out the theme file for just the CSS view or for all views? I have only skimmed the code. It would be nice if ST2 allowed access to the structure in memory so you didn't have to save a modified physical copy, but sadly I don't think that is available either.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: [CSS, theme] use real colors to highlight colors props

Postby facelessuser on Sat Nov 12, 2011 8:49 pm

Hmm. Only get grey scale colors here. I may take a deeper look into it later.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

PreviousNext

Return to Plugin Development

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests