Menu Search->Find Symbol not working?

General questions regarding the usage of CodeLite
idhan
CodeLite Enthusiast
Posts: 12
Joined: Fri Nov 28, 2014 6:04 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Menu Search->Find Symbol not working?

Post by idhan »

Isn't really working... I'm using irrlicht.. irrlicht has "irr" as main namespace and
some subnamespaces such as "video, core, etc."

as example if I use:

Code: Select all

using namespace irr;
video::IVideoDriver *m_videoDriverPtr;
m_videoDrivePtr-> // NOTHING HAPPENS...
but if I declare the variable as

Code: Select all

irr::video::IVideoDriver *m_videoDriverPtr; // DISPLAY CODE COMPLETITION
For the navigation is the same.. if the variable is full namespace-path declared,
then navigation as "go to declaration/implementation" works.

under my own code sometime it does work..sometimes it doesn't.

"Quick Outline" is working out of the box and it is just great!!! I just need "find symbol"
to get basic workspace/project navigation :D
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Menu Search->Find Symbol not working?

Post by eranif »

Can you upload a minimal workspace with project with 2-3 files that helps me reproduce the problem?
Thanks,
Eran
Make sure you have read the HOW TO POST thread
idhan
CodeLite Enthusiast
Posts: 12
Joined: Fri Nov 28, 2014 6:04 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Menu Search->Find Symbol not working?

Post by idhan »

Here is a small project, using irrlicht. If you are in linux and you install the library,
it should work out of the box..

there is a class "Controller" with some comments where the completition isn't working.

About the "find symbol" I need to apologize... its seems to work. If the cursor is under
a "symbol" and I hit "find symbol" appears a windows with the possible hits.
But I'm using codelite less than 24 hours and I thought that it will appears a windows
similar to "Quick outline" where a can see all the classes/structures of my project/workspace
and when I start to type on it, automatically the list will be filtered (as with Visual Assist
of Visual Studio).

But I tried the funcionality while the cursor wasn't under any symbol.. and of course then
nothing happened... once I again, sorry about the all thing.

However, about the completition problem is reproducible with the small project I'm attaching here.
Hoopfully isn't my mistake again :oops: if yes..please let me know.

thanks again!!
You do not have the required permissions to view the files attached to this post.
idhan
CodeLite Enthusiast
Posts: 12
Joined: Fri Nov 28, 2014 6:04 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Menu Search->Find Symbol not working?

Post by idhan »

Hi Eranif,

about the completition...did you get it to work with my example?
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Menu Search->Find Symbol not working?

Post by eranif »

Sorry, did not test it yet. Will do it later on today and I will post this thread
Eran
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Menu Search->Find Symbol not working?

Post by eranif »

Hi idhan,
I opened the workspace you provided, and did the following:

1. Installed libirrlicht-dev

Code: Select all

sudo apt-get install libirrlicht-dev
2. Enabled clang code completion in codelite, from: Settings->Code Completion->Clang->Enable clang

3. Rebuild the project (right click the project and select 'Rebuild'), this step is needed so codelite can "wrap" the compilation for each file with codelite-cc (a tiny wrapper that records the compilation line, which is needed by libClang)

4. Tried the code completion... works...
irrlicht.png
Eran
You do not have the required permissions to view the files attached to this post.
Make sure you have read the HOW TO POST thread
Post Reply