Bug #18532 2012-03-14 05:13
alexhenrie
Code completion doesn't work well outside of projects
Code completion does not work unless a project has been opened before opening the file to be edited and Code::Blocks has saved this file at least once.
Operating system: Linux (Lubuntu 11.10).
Steps to reproduce:
1. Create the following files and place them in the same folder:
===foobar.h===
void foobar();
===end foobar.h===
===demo.c===
#include "foobar.h"
int main()
{
fo
return 0;
}
===end demo.c===
2. Open demo.c in Code::Blocks.
3. Place the cursor at the end of line 5 and press Ctrl+Space. "foobar" does not appear in the code completion dropdown.
4. Close demo.c.
5. Open any Code::Blocks project.
6. Reopen demo.c.
7. Place the cursor at the end of line 5 and press Ctrl+Space. "foobar" does not appear in the code completion dropdown.
8. Make a trivial change to demo.c, for example adding a newline and deleting it.
9. Save demo.c.
10. Place the cursor at the end of line 5 and press Ctrl+Space. Now it works!
I really like Code::Blocks and I would love to be able to use Code::Blocks as a source code editor even when I'm editing a file that's not part of a Code::Blocks project. This bug makes that a lot harder. Please let me know if you need any additional information, screenshots, etc.
- Category
- Plugin::CodeCompletion
- Group
- Status
- Open
- Close date
- Assigned to
- ollydbg