Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started 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)
-
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]
-
I have the same problem - 308k - with many blank lines at various places.
I've been using nightlies on xp.
-
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...
-
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)