Page 1 of 1

Code completion not working

Posted: Thu Mar 17, 2016 7:32 pm
by marmistrz
I installed Codelite from AUR on Arch Linux. I'm coding a C project, so I'd like to use C code completion.

When I started typing some code, the code completion worked as usually. But once I've saved the file as foo.c, the code completion ceased to work.

I created a workspace in hope this would help but now the code completion doesn't work even in cpp files, even though it's enabled in the settings.

Can you help me please?

Re: Code completion not working

Posted: Thu Mar 17, 2016 8:51 pm
by eranif
Did you add the file foo.c to the project?
Eran

Re: Code completion not working

Posted: Mon Mar 21, 2016 8:51 pm
by marmistrz
eranif wrote:Did you add the file foo.c to the project?
Eran
Thanks!
Well, after creating a project it started to work. Why didn't it without creating a project?

Re: Code completion not working

Posted: Tue Mar 22, 2016 6:34 pm
by eranif
The code completion needs to know the include paths, definitions and other build attributes that are part of the project settings
This is where it will attempt to search for "#include" statement and other info it needs for getting the code completion to work

Eran