Sunday, July 6th 2008, 7:27pm UTC+1

You are not logged in.

  • Login
  • Register

1

Friday, March 14th 2008, 4:13pm

Auto-complete not working for me

Hi, I've used KDevelop for two days for a C++ project. The auto-completion feature works only intermittently. Once in a while, when I type "myvar." or "myptr->" or "myclassname::", it shows a droplist with the available members. But 95% of the time, it does nothing.

It doesn't matter whether the variable is defined locally, or is a class member or namespace.

Furthermore, the behavior is not even repeatable: if the auto-complete *does* pop up, and I delete the "->" and type it again, this time auto-complete *does not* show up.

I'm using KDevelop 3.1.1 (KDE 3.3.1-3.14 Red Hat).

Any help is very much appreciated.
  • Go to the top of the page

Messenger

Intermediate

Posts: 325

Location: Lt

2

Friday, March 14th 2008, 5:12pm

RE: Auto-complete not working for me

Well, you have not said what have been done. The basics.
Push Ctrl+Space or set options in "C++ support" to popup completion.
To have code completion for external (for example qt3, qt4? I doubt it will be supported in 3.1.1) classes you need to create completion database. Open any c++ project, go to Project Options, select C++ support and...
Look at status bar - KDevelop anounces that it have resolved or unresolved some name.
I use 3.5.1. Code completion is medium good. Really not bad.
Maybe you can install/compile latest KDevelop version which requirements are met (KDE version and other library versions).
Run KDevelop from console and see messages.
Fighting fire with fire.
  • Go to the top of the page

3

Friday, March 14th 2008, 6:17pm

RE: Auto-complete not working for me

Ah, that helped. Under Project Options . C++ Specific > Code Completion, I built the Persistant Class Stores for KDElibs, Qt, and my project directory. Now it works. (It is odd that it worked occasionally before.)

The correct term to Google is "automatic code completion".

Thanks!
  • Go to the top of the page

4

Friday, March 28th 2008, 4:00pm

RE: Auto-complete not working for me

Just a follow-up for anyone else having this problem. In my previous post, I said building the PCS's "helped". That is the correct word- now it works maybe 30% of the time instead of 5%. As before, the symptoms are not repeatable. The problem is not tied to any particular usage. Just intermittent...
  • Go to the top of the page

Rate this thread