News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

default.conf is getting obese

Started by Pecan, April 02, 2007, 11:41:11 PM

Previous topic - Next topic

Pecan

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.


mandrav

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...

k2dave

I have the same problem - 308k - with many blank lines at various places.
I've been using nightlies on xp.

thomas

Quote from: 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...
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."

Pecan

I believe it's happening in more sections than that.

Have a look at this defaultConf.zip

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