Missing output from buildprocess fixed

Andreas Pakulat apaku at gmx.de
Wed Feb 27 21:33:43 UTC 2008


Hi,

this is to notify everybody that I just fixed #158236, the error
messages from make or other buildtools are now again properly displayed.
It was a pretty stupid typo in the end.

Anybody building from source packages, the patch is attached. I also
notified the various kde-packaging teams of the distro's via
kde-packager list.

Amilcar, if you read this, I think a new binary snapshot is a good idea
;) (revision 780036 or later)

Andreas

-- 
You will gain money by an illegal action.
-------------- next part --------------
Index: parts/outputviews/makewidget.cpp
===================================================================
--- parts/outputviews/makewidget.cpp	(Revision 780035)
+++ parts/outputviews/makewidget.cpp	(Revision 780036)
@@ -532,28 +532,31 @@
 {
     QString sline;
     bool forceCLocale = KConfigGroup( kapp->config(), "MakeOutputWidget" ).readBoolEntry( "ForceCLocale", true );
+    
     if( forceCLocale )
         sline = QString::fromAscii( stdoutbuf+line );
     else
         sline = QString::fromLocal8Bit( stdoutbuf+line );
-    stdoutbuf.truncate(0);
 
     if ( !appendToLastLine( sline ) )
         m_directoryStatusFilter.processLine( sline );
+    stdoutbuf.truncate(0);
 }
 
 void MakeWidget::insertStderrLine( const QCString& line )
 {
     QString sline;
     bool forceCLocale = KConfigGroup( kapp->config(), "MakeOutputWidget" ).readBoolEntry( "ForceCLocale", true );
+    
     if( forceCLocale ) {
         sline = QString( stderrbuf+line );
     }
     else
         sline = QString::fromLocal8Bit( stderrbuf+line );
+    
+    if ( !appendToLastLine( sline ) )
+        m_errorFilter.processLine( sline );
     stderrbuf.truncate(0);
-    if ( !appendToLastLine( line ) )
-        m_errorFilter.processLine( line );
 }
 
 void MakeWidget::slotProcessExited(KProcess *)
@@ -832,7 +835,7 @@
 
 void MakeWidget::storePartialStdoutLine(const QCString & line)
 {
-    stderrbuf += line;
+    stdoutbuf += line;
 }
 
 #include "makewidget.moc"


More information about the KDevelop-devel mailing list