Author Topic: An old bug is again in CB  (Read 6471 times)

Max

  • Guest
An old bug is again in CB
« 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

Offline artoj

  • Almost regular
  • **
  • Posts: 206
  • Location: Supporting my team
    • http://ajonsson.kapsi.fi/
Re: An old bug is again in CB
« Reply #1 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
« Last Edit: February 05, 2007, 08:53:15 pm by artoj »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: An old bug is again in CB
« Reply #2 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);
 

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2877
Re: An old bug is again in CB
« Reply #3 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.
« Last Edit: February 06, 2007, 04:53:50 am by Pecan »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: An old bug is again in CB
« Reply #4 on: February 06, 2007, 01:24:25 pm »
Fixed in r3576.
Be patient!
This bug will be fixed soon...