[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.cdt] Re: CDT 4.0 Content Assist not working

Holger Berndt wrote:
I am a new Eclipse/CDT user, and am still having some problems. The
most annoying one is that I was not yet able to get the content assist
working. Basically, I have the very same problems as Hauke described in
http://dev.eclipse.org/newslists/news.eclipse.tools.cdt/msg11650.html
(unfortunately, that post didn't get an answer)

Basically, very simple things like completion for "main()" or
"for"-loops work. On the other hand, completion does not work for any
of my own classes whose headers I included, nor does it work for
functions of the standard library. It looks like the assist is not
parsing the included header files at all, even though they are in the
include path.

The documentation says something about selectable scopes with a radio
button, but I don't have that button in CDT 4.0.

Can anybody point me into the right direction to get content assist
working? Anything I could be looking for in log files?

Best regards,
Holger

There is a common pitfall which you might check first:

If you type a new source file and include a header the first time,
you need to save the file, before the include file is indexed.
Before that, content assist won't suggest anything from the included file.
The reason is that by default the indexer only indexes headers which are actually included by a source file. You can change this by enabling the option "Index all files" either in the preferences (C/C++ > Indexer) or
in the project properties (C/C++ General > Indexer).


If this does not help, I suggest to file a bug at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=CDT
and attach your project if possible.

Thanks,
Toni
--
Anton Leherbauer
Wind River CDT Team, Austria