Page 1 of 1

Code Completion Problem

Posted: Fri Oct 04, 2013 11:14 am
by ale
I am using a library which has 1 header file that only includes of all of its files/classes, like

aheader.h

Code: Select all

#include "ClassA.h"
#include "ClassB.h"
...this file only contains #include
Then when creating a program, you will only need to include aheader.h. But codelite's autocompletion won't work, it cannot show the contents of
ClassA
and others.

Is there a way to make codelite's code completion work on this kind of structure?

Re: Code Completion Problem

Posted: Fri Oct 04, 2013 12:08 pm
by eranif
ale wrote:Is there a way to make codelite's code completion work on this kind of structure?
It should work.

So assuming your code looks something like:

Code: Select all

...
#include "aheader.h"
..
What happens when you right click on the "aheader.h" and select 'Open Incude File "aheader.h"' ?
Can codelite find it?

Eran

Re: Code Completion Problem

Posted: Fri Oct 04, 2013 4:25 pm
by ale
eranif wrote:What happens when you right click on the "aheader.h" and select 'Open Incude File "aheader.h"' ?
Can codelite find it?
Yes codelite finds and opens it.

I already tried retagging and reloading my workspace and project but it still does not work.

By the way, I'm using Linux Mint 15 32bit and the latest release of codelite

Re: Code Completion Problem

Posted: Fri Oct 04, 2013 4:38 pm
by eranif
Can you please post some content of that include file? + the directory layout of the library?
Also, please post the content of your code completion search paths as described in the HOW TO POST forum thread

Thanks,
Eran

Re: Code Completion Problem

Posted: Fri Oct 04, 2013 5:02 pm
by ale
It is actually a cmake project.

All .cpp and .h files here: /home/ale/Applications/Parent/Lib/src . This is also the path I added in tag settings.

myLib.h contains a bunch of #include of all files/classes of the library

my Main.h

Code: Select all

#include "myLib.h"

using namespace myLib;
...
my Main.cpp

Code: Select all

#include "Main.h"
//This is where I need code completion

Re: Code Completion Problem

Posted: Fri Oct 04, 2013 5:18 pm
by eranif
ale wrote:myLib.h contains a bunch of #include of all files/classes of the library
I wanted to view the content of myLib.h (please copy it exactly as you see it)

Eran