Page 1 of 1

Code completion doesn't work for Ogre libs

Posted: Fri Feb 05, 2010 5:08 am
by Nosferax
Hey,

I'm using code lite rev 3681 and I cannot get code completion to work for ogre libraries.

I have a directory named Development, all my projects are located there.

The ogre includes are located in "/home/nosferax/Development/ogre/OgreMain/include". I have added this path to my workspace's parser include files, have retagged the workspace multiple times. Still, in my main.cpp file I cannot get code completion on the functions/members of objects. I can get the object names just fine... alas not the functions.

It doesn't work either if I add the path to the global tag settings.

Code completion works fine for stl stuff.

Is there something else I can do ?

thanks!

Nox

[edit : changed the title to be more accurate.]

Re: Code completion doesn't work.

Posted: Fri Feb 05, 2010 9:38 am
by eranif
Can u post here how you include the Ogre files?
and the paths you got in the tags include paths?

Thanks,
Eran

Re: Code completion doesn't work.

Posted: Fri Feb 05, 2010 8:40 pm
by Nosferax
Workspace Parser include files :

/home/nosferax/Development/ogre/Common/CEGUIRenderer/include
/home/nosferax/Development/ogre/Common/include
/home/nosferax/Development/ogre/OgreMain/include

Global Parser include files (under Settings->Tags Settings):

/usr/include
/usr/include/c++/4.4.1
/home/nosferax/Development/ogre/OgreMain/include

I have no exclusion paths set.

I have a Playground project, which is basically a test app. In the project I have a PlaygroundApplication. In PlaygroundApplication.h, I include ExampleApplication.h, which is located in Common/include, which in turn includes Ogre.h, located in OgreMain/include.

Inclusion statements are

Code: Select all

#include "ExampleApplication.h
in PlaygroundApplication.h and :

Code: Select all

#include "Ogre.h"
#include "OgreConfigFile.h"
#include "ExampleFrameListener.h"
in ExampleApplication.h.

The project compiles and runs just fine.

thanks,
Nox

Re: Code completion doesn't work for Ogre libs

Posted: Fri Feb 05, 2010 11:24 pm
by Nosferax
I'd like to add that I just set-up and used code completion successfully on a project using open scene graph and it worked alright. So there is a problem with Ogre somewhere.

Re: Code completion doesn't work for Ogre libs

Posted: Sat Feb 06, 2010 5:13 am
by eranif
I just tested it on Windows and it seems to work

I only added the path to C:\OgreSDK\include

I pasted the included files from your post typed:

Code: Select all

Ogre:: // Completion works 
2 differences between our environments:
1) I am using Windows
2) I am using trunk version of codelite (with some bugs in scan files for code-completion fixed)

My suggestion:
1) try to move Ogre SDK to some other path so it wont share path with your project (e.g. /home/nosferax/ogre)
2) Try to do a complete retag (from the menu: workspace -> retag workspace (full))

Eran