Bug 140949 - code completion - argument hints - incorrectly reports errors and therefore does not offer hinting
Summary: code completion - argument hints - incorrectly reports errors and therefore d...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.4.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-31 14:16 UTC by Billy Pollifrone
Modified: 2007-01-31 17:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Billy Pollifrone 2007-01-31 14:16:21 UTC
Version:           3.4.0 (using KDE KDE 3.5.5)
Installed from:    Ubuntu Packages
Compiler:          gcc 4-1.2 20060928 
OS:                Linux

Had cmake with one form and supporting sources. Created a new simple QMake 4 project.

Added cpp, h, and ui files from cmake project using the Qmake manager.

Edit any source file and when entering a function (after open parenthesis) status bar says that "the file parsed okay, but the code-model not updated due to errors"

The source file builds without error even after a clean and a dist-clean. The project runs fine.
Comment 1 Andreas Pakulat 2007-01-31 15:46:24 UTC
Uhm, argument hints only work when doing something like

someobj.somefunc(

not for code like

void SomeClass::func(

if thats what you mean.
Comment 2 Billy Pollifrone 2007-01-31 15:56:02 UTC
Andreas Pakulat wrote:
[bugs.kde.org quoted mail]

Correct. This is not when defining functions but rather when using
functions that have already been defined. Calling a constructor for
QFile would be an example. The hints would show the various
constructors. For some reason it doesn't function under qmake based
projects.
Comment 3 Andreas Pakulat 2007-01-31 17:11:20 UTC
Works for me under a qmake project. It doesn't work for ui-derived classes when used on any of the widgets defined in the form. The reason for this is that the generated files would need to be parsed and we can't do that in KDevelop because they don't belong (and shouldn't) to the project.

A simple 

QFile f(<ctrl+space>

works perfectly here.
Comment 4 Billy Pollifrone 2007-01-31 17:23:02 UTC
Andreas Pakulat wrote:
[bugs.kde.org quoted mail]

It looks as though pressing ctrl+space makes it work for me as well. In
the cmake project, it would just pop it up when I simply typed the (.
That's not a problem for me pressing ctrl+space is an acceptable
alternative.
Comment 5 Andreas Pakulat 2007-01-31 17:45:00 UTC
Uhm, please make sure that automatic argument hints and eventually also the automatic code-completion are enabled under Project Options->C++ Support.

IIRC these are often switched of for the various application templates because they were very annoying due to speed-problems in the past. And even nowadays I prefer to use ctrl+space, because I don't need the completion that often ;)