Irrlicht tagging problem

General questions regarding the usage of CodeLite
aaulia
CodeLite Enthusiast
Posts: 23
Joined: Wed Aug 20, 2008 10:45 pm
Contact:

Irrlicht tagging problem

Post by aaulia »

Hi eranif, it's me again, complaining :D
Anyway could you look into irrlicht ? since I try to use it with CodeLite, and setup an external tag database, using it's include directory, but when I invoke the intellisense but it's not working (showing). To test you can use any of the example and try to invoke

Code: Select all

smgr->|
where | is the cursor position, now to my understanding CodeLite should be able to give me intellisense suggestion about it's (smgr, which is SceneManager) methods and variables. But when I press Ctrl+Space it doesn't show anything.
Thx
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Irrlicht tagging problem

Post by eranif »

where can i get the Irrlicht sources from?
Eran
Make sure you have read the HOW TO POST thread
aaulia
CodeLite Enthusiast
Posts: 23
Joined: Wed Aug 20, 2008 10:45 pm
Contact:

Re: Irrlicht tagging problem

Post by aaulia »

Sorry for not being clear :)
http://irrlicht.sf.net, you could download or do svn checkout, in my case since I'm using linux box (Ubuntu 8.10) so I do svn checkout.
aaulia
CodeLite Enthusiast
Posts: 23
Joined: Wed Aug 20, 2008 10:45 pm
Contact:

Re: Irrlicht tagging problem

Post by aaulia »

Hi any news about this issue ? Is it just me ?
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Irrlicht tagging problem

Post by eranif »

Hi,

The problem is with the nested namespaces - so it is not you only ;)

ISceneManager is actually: irr::scene::ISceneManager

If you change this declaration from

Code: Select all

ISceneManager* smgr = device->getSceneManager();
to

Code: Select all

irr::scene::ISceneManager* smgr = device->getSceneManager();
code completion will work.
Ofc, this is a bug, but I believe that this is a reasonable solution for now.
Eran
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Irrlicht tagging problem

Post by eranif »

Hi,

I committed a fix to SVn trunk which resolves the 'using namespace' issue. However since there are nested namespaces, (irr::scene, irr::gui etc.) codelite only understands full paths of a namespace.

for now (revision 2669), to make code completion work with the provided samples, all you need to do is:

replace this block:

Code: Select all

using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
with this:

Code: Select all

using namespace irr::core;
using namespace irr::scene;
using namespace irr::video;
using namespace irr::io;
using namespace irr::gui;
the rest of the code remains un-changed.
Eran
Make sure you have read the HOW TO POST thread
aaulia
CodeLite Enthusiast
Posts: 23
Joined: Wed Aug 20, 2008 10:45 pm
Contact:

Re: Irrlicht tagging problem

Post by aaulia »

Nice ! Thank you eran for the fix and explanation, you're the best :D
Post Reply