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.]
Code completion doesn't work for Ogre libs
- Nosferax
- CodeLite Enthusiast
- Posts: 20
- Joined: Fri Feb 05, 2010 4:59 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Code completion doesn't work for Ogre libs
Last edited by Nosferax on Fri Feb 05, 2010 11:22 pm, edited 1 time in total.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Code completion doesn't work.
Can u post here how you include the Ogre files?
and the paths you got in the tags include paths?
Thanks,
Eran
and the paths you got in the tags include paths?
Thanks,
Eran
Make sure you have read the HOW TO POST thread
- Nosferax
- CodeLite Enthusiast
- Posts: 20
- Joined: Fri Feb 05, 2010 4:59 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Code completion doesn't work.
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
in PlaygroundApplication.h and :
in ExampleApplication.h.
The project compiles and runs just fine.
thanks,
Nox
/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
Code: Select all
#include "Ogre.h"
#include "OgreConfigFile.h"
#include "ExampleFrameListener.h"
The project compiles and runs just fine.
thanks,
Nox
- Nosferax
- CodeLite Enthusiast
- Posts: 20
- Joined: Fri Feb 05, 2010 4:59 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Code completion doesn't work for Ogre libs
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.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Code completion doesn't work for Ogre libs
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:
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
I only added the path to C:\OgreSDK\include
I pasted the included files from your post typed:
Code: Select all
Ogre:: // Completion works
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
Make sure you have read the HOW TO POST thread