Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Pecan on April 02, 2007, 11:41:11 pm

Title: default.conf is getting obese
Post by: Pecan 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.

(http://img503.imageshack.us/img503/3041/168og7.png)
Title: Re: default.conf is getting obese
Post by: mandrav 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]
Title: Re: default.conf is getting obese
Post by: k2dave 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.
Title: Re: default.conf is getting obese
Post by: thomas 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...
Title: Re: default.conf is getting obese
Post by: Pecan 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 (http://www.savefile.com/files/605249)