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

Bug 318940

Summary: header completion via Ctrl-Space stopped working in final Helios release
Product: [Tools] CDT Reporter: Vadym Krevs <vkrevs>
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: RESOLVED DUPLICATE QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: major    
Priority: P3 CC: vkrevs
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Vadym Krevs CLA 2010-07-05 16:30:14 EDT
Build Identifier:  20100617-1415

I have a medium sized (~8000 files) makefile-based C++ project. In Helios RC1-4 it was possible to complete the name of an include header by hitting Ctrl-Space while typing the name of the header. E.g., '#include "myhead<Ctrl-Space>' resulted in '#include "myheader.h"', etc.

As of final Helios build, this seems to be broken. It can be demonstrated using the standard Hello world makefile project as described below.



Reproducible: Always

Steps to Reproduce:
1. Create a new workspace. Right-click in Project Explorer, select "New->C++ Project", "Makefile project, "Hello World C++ project", "Linux GCC toolchain", and use "testproj" as the project name. Click finish.

2. In the generated testproj.cpp position the cursor below the last #include directive, and type '#include <std' and hit Ctrl-Space. The first time this is done in a brand new workspace, I get a popup with a bunch of proposals such as stdatomic.h, etc.
3. Position the cursor on the next line and repeat. Start typing '#include <std' and hit Ctrl-Space. You get a "<No default proposals> popup.
4. Try adding a new header to the project called foo.h. Then type '#include "foo' and hit Ctrl-Space - still no joy.
Comment 1 Andrew Gvozdev CLA 2010-07-05 17:27:56 EDT
Open Window > Preferences > C/C++ > Editor > Content Assist > Advanced and enable "Parsing-Based Proposals".

*** This bug has been marked as a duplicate of bug 294910 ***
Comment 2 Vadym Krevs CLA 2010-07-06 03:15:40 EDT
Should that not be the default for any new workspace in Helios CDT?