Code Completion Problem

CodeLite installation/troubleshooting forum
ale
CodeLite Curious
Posts: 3
Joined: Fri Oct 04, 2013 11:05 am
Genuine User: Yes
IDE Question: c++
Contact:

Code Completion Problem

Post 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?
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 Problem

Post 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
Make sure you have read the HOW TO POST thread
ale
CodeLite Curious
Posts: 3
Joined: Fri Oct 04, 2013 11:05 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Code Completion Problem

Post 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
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 Problem

Post 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
Make sure you have read the HOW TO POST thread
ale
CodeLite Curious
Posts: 3
Joined: Fri Oct 04, 2013 11:05 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Code Completion Problem

Post 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
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 Problem

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