Code completion not working

General questions regarding the usage of CodeLite
marmistrz
CodeLite Curious
Posts: 6
Joined: Thu Mar 17, 2016 7:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Code completion not working

Post 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?
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Code completion not working

Post by eranif »

Did you add the file foo.c to the project?
Eran
Make sure you have read the HOW TO POST thread
marmistrz
CodeLite Curious
Posts: 6
Joined: Thu Mar 17, 2016 7:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Code completion not working

Post 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?
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Code completion not working

Post 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
Make sure you have read the HOW TO POST thread
Post Reply