Version: 3.4.0 (using KDE 3.4.0 Level "b" , SUSE 9.3) Compiler: gcc version 3.3.5 20050117 (prerelease) (SUSE Linux) OS: Linux (i686) release 2.6.11.4-21.11-smp When selecting Edit -> Reformat Source on an existing C++ file, extra text is inserted at the ends of some lines: vector<string> tokens; Tokenize ( input, tokens, ";" ); if ( tokens.size() != 19 ); ); <<<<=== Note Extra ");" { _unitController->SendAlert ( new Alert ( Error, "ArchiveInfo::ParseRawInput", "Error Tokenizing Archive Info Response" ) ); return -1;er->Se <<<<=== Note Extra "er->Se" }
Wild.. is this repeatable? Did you have a selection in the file at the time?
It does seem to be repeatable. There is no selection in the file currently. I just upgraded from 3.3.x to 3.4.0. This is a project that was created with the old release. Everything else seems to be working fine though. Thanks, Dan ________________________________ From: owner@bugs.kde.org on behalf of Jens Dagerbo Sent: Sun 1/21/2007 6:07 PM To: Dan Blake Subject: [Bug 140415] Edit Reformat Source Corrupting File ------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter. http://bugs.kde.org/show_bug.cgi?id=140415 jens.dagerbo swipnet se changed: What |Removed |Added ---------------------------------------------------------------------------- Component|general |astyle ------- Additional Comments From jens.dagerbo swipnet se 2007-01-22 01:07 ------- Wild.. is this repeatable? Did you have a selection in the file at the time?
I am unable to reproduce this at all. To try to reproduce, I created a simple hello world project and pasted in the lines: vector<string> tokens; Tokenize ( input, tokens, ";" ); and then formated the file. Can you give more details - maybe something in the file before these lines. Or if you can reproduce with a simple example. Can you also give the options used. These are located in two locations: global - in the kdeveloprc file usually in $(HOME).kde/share/config/kdeveloprc project - in the project .kdevses file
Created attachment 20990 [details] The example file for format error
I have attached the complete file that was having the problem. Let me know if there is anything else I can provide.
Thanks for the file - can you also include the global kdeveloprc file and the project .kdevses file - I need to get your formatting options.
no further response from the reporter and not reproduceable. Closing.