Bug#43277: crash in coutputwidget when doing automake/autoconf

Kuba Ober kuba at mareimbrium.org
Fri May 31 21:55:04 UTC 2002


> Since version 2.1.1 Kdevelop crashes when I do automake/autoconf, generate
> documentation-index or when I compile code which has an error. I think the
> patch from Marcus Gruendler which was recently applyed introduced this bug.
> When I revert it the crash disapears. My qt-version is qt-copy-3.0.4.1
> which was released with kde-3.0.1.

I consider the COutputWidget broken, because it passes unknown text (generated 
by make / autoconf / whatever) to QMultiLineEdit, and QMultiLineEdit may 
consider it rich text because of some funny characters that go in there.

I've fixed it by forcing it to be a plain text widget and setting colors by 
hand in QMakeOutputWidget. It also fixed a problem whereas compiling kdevelop 
under qt 3.0.4 with gcc 3.1-2 would make the make output window's output not 
break lines. I don't know the source of it, but it definitely fixes it for me 
and makes the output more stable too (it doesn't parse rich text stuff).

The m_enterDir and m_leaveDir regexps were fixed to support polish localized 
make output. Note that kdevelop and make can run in different locales, so 
those regexps cannot be localized; instead, every decent locale's make output 
should theoretically get there.

So far I'm using polish locale, so polish make output was included ;-))

Note that error clicking in output window doesn't work if m_enterDir and 
m_leaveDir don't match relevant make output.

Cheers, Kuba Ober
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdevelop-output.patch
Type: text/x-diff
Size: 2046 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20020531/7b6a808c/attachment.bin>


More information about the KDevelop-devel mailing list