Page 1 of 1

Code Completion not working for me

Posted: Wed Mar 14, 2018 3:38 am
by BigAl
This feature is one of main factors in my going with CodeLite, but it's not working (yet).
I've read the docs on how it is set up. But where is claims I should see auto-populated paths, there are just blank.

I'm running on CentOS7, and my project (clang compiled) builds, runs & debugs as expected.
The auto-completion works, meaning that a dialog automatically pops up as I'm typing to suggest the completion of function names or variable names, etc..
But when I do "." or "->" nothing happens.

For instance:

Code: Select all

#include <string>
std::string foo;
foo.
No dialog with message suggestions appears.

Under Workspace->(right click)->Workspace Settings->Code Completion, both Search Paths and Macros are empty.
Under Project->(right click)->Settings->Code Completion, both Search Paths and Macros are empty.
Under Settings->(drop down)->Code Completion..., everything remains the default from installation and that Clang tab has everything greyed out.

My assumption is that the lack of auto-populated paths in those dialogs is my issue but I don't know what I can do about that.

Thanks

Re: Code Completion not working for me

Posted: Wed Mar 14, 2018 11:41 am
by eranif
If CodeLite can't complete this for you, it means it can't find <string>
This is configured globally (per compiler)

Can you confirm that from the Menu bar:
'Settings->Code Completion->CTags->Search paths' contains valid and correct search paths?
If this is empty, click on the 'Suggest' button and see if it works