Code completion deadlock (again) and patch

Jens Zurheide jens.zurheide at gmx.de
Wed Sep 21 23:47:03 UTC 2005


Hi,

I thought it is worth looking into the C++ code completion problems I 
encounter with kdevelop from the KDE 3.5 svn branch.

To reproduce the problem it is necessary to remove all old pcs-files from 
$KDEHOME/share/apps/kdevcppsupport and to start kdevelop with a C++ project. 
From the project options create a new pcs file for Qt. 
Set the cursor at the end of a line in the editor press enter and then any 
letter. kdevelop goes into an infinite recursive loop starting in 
languages/cpp/cppcodecompletion.cpp, line 1990.

I have modified lib/catalog/catalog.cpp with the attached patch and this 
solves the infinite recursion of kdevelop. Code completion seems to work 
however I do not have enough time right now to test the patch thoroughly and 
I have to admit that I don't know what I am doing. ;-) (Anyone daring to test 
the patch?)

As a side note: during the error hunting I had the impression that the 
pcs-files are corrupted and unusable if kdevelop is started from a console 
and stopped via Ctrl-C.

Have fun,
Jens

PS: BDB seems to be version 4.2.52
-------------- next part --------------
A non-text attachment was scrubbed...
Name: catalog.patch
Type: text/x-diff
Size: 363 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20050921/2f614bbb/attachment.bin>


More information about the KDevelop-devel mailing list