Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318223 - Content-assist/autocomplete no longer works for #include directives
Summary: Content-assist/autocomplete no longer works for #include directives
Status: CLOSED DUPLICATE of bug 294910
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 7.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-28 14:31 EDT by Kenny Peng CLA
Modified: 2010-07-02 05:02 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***