Page 1 of 1
Irrlicht tagging problem
Posted: Mon Jan 05, 2009 3:48 pm
by aaulia
Hi eranif, it's me again, complaining
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
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
Re: Irrlicht tagging problem
Posted: Mon Jan 05, 2009 5:09 pm
by eranif
where can i get the Irrlicht sources from?
Eran
Re: Irrlicht tagging problem
Posted: Mon Jan 05, 2009 7:48 pm
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.
Re: Irrlicht tagging problem
Posted: Wed Jan 07, 2009 4:17 am
by aaulia
Hi any news about this issue ? Is it just me ?
Re: Irrlicht tagging problem
Posted: Wed Jan 07, 2009 12:06 pm
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
Re: Irrlicht tagging problem
Posted: Wed Jan 07, 2009 4:12 pm
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
Re: Irrlicht tagging problem
Posted: Wed Jan 07, 2009 4:32 pm
by aaulia
Nice ! Thank you eran for the fix and explanation, you're the best