Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318223

Summary: Content-assist/autocomplete no longer works for #include directives
Product: [Tools] CDT Reporter: Kenny Peng <kpeng>
Component: cdt-indexerAssignee: Project Inbox <cdt-indexer-inbox>
Status: CLOSED DUPLICATE QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: aleherb+eclipse, scobido1984
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Kenny Peng CLA 2010-06-28 14:31:00 EDT
Build Identifier: 20100617-1415

In Galileo/CDT 6.0, when I pressed Ctrl+Space, it used to present me with a list of matching headers when I typed the #include directive. Now in CDT 7.0, it no longer finds any headers, it always says "No completions available" in the Default Proposals context pop-up. It does know to follow the file if I type the entire header name out and Ctrl+Click.

Reproducible: Always

Steps to Reproduce:
1. Type the beginning of a header inclusion directive, e.g. "#include <iostr"
2. Press Ctrl-Space to trigger Content-Assist
3. Status bar says "No completions available", Default Proposals list is empty ("No Default Proposals")
Comment 1 Markus Schorn CLA 2010-06-29 01:14:26 EDT
Most likely the include search path is not set up correctly. Please attach a parser log for the file where content assist is not working for you:
Context menu of file in project explorer - Index - Create Parser Log
Comment 2 Anton Leherbauer CLA 2010-06-29 04:46:23 EDT
Could also be a Mylyn problem - see bug 294910.
Comment 3 Kenny Peng CLA 2010-06-29 12:33:17 EDT
(In reply to comment #2)
> Could also be a Mylyn problem - see bug 294910.

Disabling the Mylyn plugins got the content-assist to work somewhat, although it feels nowhere as responsive as it used to be.  It takes a few tries of Ctrl+Space switching to get the proposals to come up.(In reply to comment #2)
Comment 4 Gil Barash CLA 2010-06-30 02:28:50 EDT
In the Preferences window, look at "Content Assist"->'Advanced" make sure that "Parsing-based Proposals" is checked.
I checked all of the proposal kinds, it worked for me...
Comment 5 Markus Schorn CLA 2010-07-02 05:02:53 EDT
If you don't like the cycling of proposals you can turn it off:
Preferences - C/C++ - Editor - Content Assist - Advanced.

*** This bug has been marked as a duplicate of bug 294910 ***