Bug 140415 - Edit Reformat Source Corrupting File
Summary: Edit Reformat Source Corrupting File
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Astyle (show other bugs)
Version: 3.4.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-22 00:57 UTC by Dan Blake
Modified: 2007-12-01 18:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
The example file for format error (2.11 KB, text/plain)
2007-06-29 05:38 UTC, Dan Blake
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Blake 2007-01-22 00:57:27 UTC
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"
		}
Comment 1 Jens Dagerbo 2007-01-22 01:07:01 UTC
Wild.. is this repeatable? Did you have a selection in the file at the time?
Comment 2 Dan Blake 2007-01-22 06:10:39 UTC
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?
Comment 3 Megan Webb 2007-06-27 01:45:59 UTC
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

Comment 4 Dan Blake 2007-06-29 05:38:21 UTC
Created attachment 20990 [details]
The example file for format error
Comment 5 Dan Blake 2007-06-29 05:39:10 UTC
I have attached the complete file that was having the problem.  Let me know if there is anything else I can provide.
Comment 6 Megan Webb 2007-07-02 13:08:57 UTC
Thanks for the file - can you also include the global kdeveloprc file and the project .kdevses file - I need to get your formatting options.
Comment 7 Andreas Pakulat 2007-12-01 18:49:12 UTC
no further response from the reporter and not reproduceable. Closing.