Bug 146992 - automatic Code completion not working on preopened files
Summary: automatic Code completion not working on preopened files
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: editor integration (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-20 11:22 UTC by Andrew Fuller
Modified: 2008-08-23 22:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuller 2007-06-20 11:22:22 UTC
Version:           3.4.1 (using KDE KDE 3.5.7)
Installed from:    Ubuntu Packages
OS:                Linux

This appears to be a regression since the exact same problem was reported and fixed in '03 (see bug 60043).

Basically, when opening KDevelop, it automatically loads the previous project that was being worked on, and also opens the files that were open before KDevelop was closed last time.  Code completion does not work within these files until it is closed and then re-opened.  Meaning if files A, B and C were preopened when KDevelop started up, then code completion will not work in these files.  By closing and reopening file A, then code completion will work in file A, but still not in B or C, etc.

Hope that's clear enough.  If not, then tell me and I'll try again :)
Comment 1 Andreas Pakulat 2007-06-20 17:18:53 UTC
I can't reproduce this here with KDevelop from svn. Any file I have open gets CC.
Comment 2 draghakul 2007-08-13 19:40:05 UTC
I have the same problem with 3.4.1, I'll try compiling version from svn later today...
I tried to find the problem in the code and it seems that the textChanged() signal won't get connected to the slot (file cppcodecompletion.cpp, in function integratePart), because part->widget() returns null. Except the last file opened (the one that's active when you load the project), that one always works.
Manually invoked completion always works
Comment 3 Andreas Pakulat 2007-08-19 18:49:31 UTC
Aah, so this is not about no code completion at all, but only about the automatic completion not working? I'll change the title accordingly.

In that case: I've got no idea (and currently no time to test) wether this bug exists or not as I'm always using manual completion. Automatic completion has problems elsewhere as well IIRC.
Comment 4 Fabian Stietzel 2007-11-22 13:23:56 UTC
I have the same problem here using KDevelop 3.5.0 with KDE 3.5.8. Even re-opening seems not to help for me. I have to close all files and restart KDevelop. After that I open a file and then code completion is working again. I'm using the deb packages from Ubuntu 7.10.
Comment 5 Maciej Pilichowski 2007-12-21 18:59:15 UTC
Andreas, if the difference manual vs. auto is that auto is shown by itself and manual that user has to trigger it to be shown (*), then when KDevelop auto loads file then none of them work if I open file both of them work.

If (*) is correct then please change back the summary.
Comment 6 Markus Koegel 2008-03-13 20:02:11 UTC
Hi there,

I have installed the KDevelop 3.5.0 with KDE 3.5.8 using a Gentoo 2.6.19 kernel. The code completion fails at my projects, too: when starting KDevelop, I have to close and re-open any automatically pre-opened file to make code-completion work within the context of this respective file.
Comment 7 Andreas Pakulat 2008-07-06 21:50:07 UTC
fixed in kdevelop4