Author Topic: default.conf is getting obese  (Read 5012 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2874
default.conf is getting obese
« on: April 02, 2007, 11:41:11 pm »
Since October the default.conf file has grown by 200k.

Mostly with blank lines. I have over 20,000 blank lines.

Just opening and closing CB adds 195 bytes to the .conf.


Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: default.conf is getting obese
« Reply #1 on: April 03, 2007, 09:24:49 am »
Maybe your conf file contains old-and-not-anymore-used settings? I 'm asking because I get nowhere near this size for .conf files...



[attachment deleted by admin]
Be patient!
This bug will be fixed soon...

Offline k2dave

  • Single posting newcomer
  • *
  • Posts: 9
Re: default.conf is getting obese
« Reply #2 on: April 03, 2007, 12:11:29 pm »
I have the same problem - 308k - with many blank lines at various places.
I've been using nightlies on xp.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: default.conf is getting obese
« Reply #3 on: April 03, 2007, 04:53:41 pm »
Maybe your conf file contains old-and-not-anymore-used settings? I 'm asking because I get nowhere near this size for .conf files...
It's due to the Squirrel lexer. The keywords section ends with a backslash and a newline. Remove the backslash, and it works.
I don't know why, but EditorManager fucks it up because of that. Maybe it is a bug in tinyxml's CDATA handling too, no idea.
What happens is that each time the config is saved, another newline is appended to the CDATA holding the Squirrel lexer.

Apart from this obvious bug, it once again opens the old question why we must save every single lexer to the config file. They do not belong there...
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2874
Re: default.conf is getting obese
« Reply #4 on: April 03, 2007, 09:29:01 pm »
I believe it's happening in more sections than that.

Have a look at this defaultConf.zip

http://www.savefile.com/files/605249