Code completion in KDEStudio
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Wed Apr 11 09:34:28 UTC 2001
On Wed, 11 Apr 2001, you wrote:
> Ivan Hawkes wrote:
> >
> > How can the person who wrote that call themselves a programmer? What's wrong
> > with using a Dictionary object to store a parse of the file contents? You
> > would have to update it with every edit, but at least you're not firing off a
> > compiler every time ;-)
> But it works. Anyway, they say so. I haven't seen it working at all, I
> don't know no version which has a working codecompletion. That's why I
> cannot build it in KDevelop-2.0, although I would like.
I think if the 'hack' solution works, and the end user doesn't notice any
performance problems, then it's quite clever.
The KDevelop class parser only works in 'batch' mode - it parses a whole file
at a time, and doesn't parse interactively as the user types (although the
kwrite highlight code does that). Also it only parses method declarations and
definitions, not the body a the methods - it just skips over them. So it hasn't
any symbol table to get plausible candidate methods complete a 'foobar->' sort
of C++ statement.
I read that the 'Legendary Lost KStudio Completion Code' used ctags. Is there a
way we use ctags to get the candidate methods and load them into a
KCompletionObject (which I assume from the name is the right widget to use)?
-- Richard
-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop-devel
mailing list