Bug 65222

Summary: Source Formatter creates empty files
Product: [Applications] kate Reporter: thasart
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description thasart 2003-09-30 10:30:22 UTC
Version:           3.0.0a7 (using KDE 3.1.92 (alpha2, CVS >= 20030921), Gentoo)
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)
OS:          Linux (i686) release 2.4.20-gentoo-r4

starting the source formatter clears the file, but dosn't insert the formatted source. the result is an empty page...
Comment 1 Jens Dagerbo 2003-09-30 17:42:42 UTC
Hmmm.. indeed it does.  
 
The Gideon code hasn't changed, which probably means katepart behaviour changed 
again. I guess we'll have to ask the Kate guys about the future of 
KTextEditor::EditInterface::setText() ... 
Comment 2 Jens Dagerbo 2003-10-27 13:21:22 UTC
This is repeatable in CVS HEAD from Oct 24, both from KDevelop and DCOP. 

To reproduce:
1. Open kwrite and kdcop
2. Call EditInterface::setText("bla")

result:
kwrite shows the buffer as "modified" but no text is inserted.
Comment 3 Christoph Cullmann 2003-10-27 22:47:21 UTC
true, introduced bug in katedocument in kde cvs, have fixed the setText method (+ some return values madness of remove/insertText) now
tested with dcop for example, works again, thx for the report