Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Max on February 05, 2007, 08:06:39 pm

Title: An old bug is again in CB
Post by: Max on February 05, 2007, 08:06:39 pm
Dear All,

I am using CB nightly 3562 (Windows XP SP2) and I am observing a bug that was present
in the past. It was fixed, but now is again present.

Basically when I add any item in the keyword list (set 2) for C/C++ (Settings->Editor->syntax highlighting)
I will lost (on exit CB) all the
syntax highlighting customization. The default colors are used after any changes in the keyword lists

It is a little bit annoying to setup the syntax highlighting colors...

Please, can you confirm the bug?

Regards

Massimo
Title: Re: An old bug is again in CB
Post by: artoj on February 05, 2007, 08:49:36 pm
Basically when I add any item in the keyword list (set 2) for C/C++ (Settings->Editor->syntax highlighting)
I will lost (on exit CB) all the
syntax highlighting customization. The default colors are used after any changes in the keyword lists

Confirmed.

WinXP x64, wx2.6.3p2, rev 3562
Title: Re: An old bug is again in CB
Post by: killerbot on February 05, 2007, 09:35:55 pm
it *might* be related to revision 3557.

@Yiannis : could it be related to the line you uncommented :
Code
  //FIXME: Commenting out the following line is no definite cure, but it hides the annoying disappearing colourset for now
//cfg->DeleteSubPath(_T("/colour_sets/") + m_Name);

became

//NOTE (mandrav): uncommenting it doesn't seem to cause any trouble (at least now). What was the problem?
cfg->DeleteSubPath(_T("/colour_sets/") + m_Name);
 
Title: Re: An old bug is again in CB
Post by: Pecan on February 06, 2007, 04:52:12 am
it *might* be related to revision 3557.

@Yiannis : could it be related to the line you uncommented :
Code
  //FIXME: Commenting out the following line is no definite cure, but it hides the annoying disappearing colourset for now
//cfg->DeleteSubPath(_T("/colour_sets/") + m_Name);

became

//NOTE (mandrav): uncommenting it doesn't seem to cause any trouble (at least now). What was the problem?
cfg->DeleteSubPath(_T("/colour_sets/") + m_Name);
 

Yup, that's the line. I did the original fix for that because it was deleting the colors and keywords.

Thomas applied it, but could never figure out why it worked.
Title: Re: An old bug is again in CB
Post by: mandrav on February 06, 2007, 01:24:25 pm
Fixed in r3576.