Auto suggestion and code navigation not working entirely

General questions regarding the usage of CodeLite
etoy
CodeLite Curious
Posts: 6
Joined: Fri Jun 26, 2009 9:48 am
Contact:

Auto suggestion and code navigation not working entirely

Post by etoy »

Hello, I am using CodeLite v2.8.0.4537, the auto suggestion and code navigation not working entirely, the attachment is a workspace with one project to test these features.
Is anyone can help me solve this problem? Thanks in advance!

My working enviroment:
Ubuntu 9.10 64Bit
GCC 4.3.4
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Auto suggestion and code navigation not working entirely

Post by eranif »

Can you specify what is not working for you?
for me all worked well

Code: Select all

class1. // completion was shown
class1.GetName(). // completion shows
I also tried goto impl/decl on class1.GetName() and it seemed to work fine

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
etoy
CodeLite Curious
Posts: 6
Joined: Fri Jun 26, 2009 9:48 am
Contact:

Re: Auto suggestion and code navigation not working entirely

Post by etoy »

press . after variable class1, nothing happened
select "Goto Declaration" on Class1, nothing happened
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Auto suggestion and code navigation not working entirely

Post by eranif »

etoy wrote:press . after variable class1, nothing happened
select "Goto Declaration" on Class1, nothing happened
As you can see from the screen shots I posted it is working here.

Have you tried retagging the workspace? (usually this is not needed, but...)

From: Workspace | Retag Workspace (full)

See if it helps (this basically instructs codelite to re parse the entire workspace and all included files)
Eran
Make sure you have read the HOW TO POST thread
etoy
CodeLite Curious
Posts: 6
Joined: Fri Jun 26, 2009 9:48 am
Contact:

Re: Auto suggestion and code navigation not working entirely

Post by etoy »

Thanks for your reply!
I retagged the workspace, but the problem is still there.
I noticed, if start codelite from console, the following messages will be printed while running codelite.

ERROR: No such file or directory
Failed to connect to indexer ID 26074!
ERROR: No such file or directory
Failed to connect to indexer ID 26074!
...
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Auto suggestion and code navigation not working entirely

Post by eranif »

etoy wrote:ERROR: No such file or directory
Failed to connect to indexer ID 26074!
ERROR: No such file or directory
Failed to connect to indexer ID 26074!
Ok, thats explains it - the indexer process is not available..

This brings up the question: how did you install codelite? did you get it from soruceforge or used one available in the Ubuntu repositories?

I strongly recommend that you use the one from here:

http://codelite.org/LiteEditor/Repositories
or fetch the latest version from sourceforge

Eran
Make sure you have read the HOW TO POST thread
etoy
CodeLite Curious
Posts: 6
Joined: Fri Jun 26, 2009 9:48 am
Contact:

Re: Auto suggestion and code navigation not working entirely

Post by etoy »

The deb package of the current codelite was fetched from sourceforge.
I uninstalled the current version and reinstall it using "deb http://www.codelite.co.uk/ubuntu/ karmic universe" as the repository,
the installation is finished successfully, but the following error will be threw if I try to start the codelite:
codelite: relocation error: /usr/lib/codelite/libpluginu.so: symbol _ZN13wxAuiNotebook7SetFontERK6wxFont, version WXU_2.8 not defined in file libwx_gtk2u_aui-2.8.so.0 with link time reference
The version of the wxwidget is 2.8.11.0, installed from http://apt.wxwidgets.org .
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Auto suggestion and code navigation not working entirely

Post by eranif »

etoy wrote:codelite: relocation error: /usr/lib/codelite/libpluginu.so: symbol _ZN13wxAuiNotebook7SetFontERK6wxFont, version WXU_2.8 not defined in file libwx_gtk2u_aui-2.8.so.0 with link time reference
The version of the wxwidget is 2.8.11.0, installed from http://apt.wxwidgets.org .
I am not sure why this happened - but maybe a mismatch with the version codelite was built against (David is the one managing codelite.co.uk repo, and I believe he built codelite with the wxWidgets that comes from the repository) - we will have to wait for his comment on this.

You best bet, is to build codelite from sources, under Ubuntu is a simple task - this will fix any problems you are having + will give you access to the latest changes.

a HOTWO post is here

http://codelite.org/forum/viewtopic.php ... 1034#p4612

Please ignore the other comments on the thread and only use the one I linked

Eran
Make sure you have read the HOW TO POST thread
etoy
CodeLite Curious
Posts: 6
Joined: Fri Jun 26, 2009 9:48 am
Contact:

Re: Auto suggestion and code navigation not working entirely

Post by etoy »

Okay, I will try it.
Thanks for your help!
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Auto suggestion and code navigation not working entirely

Post by DavidGH »

Hi,
etoy wrote:codelite: relocation error: /usr/lib/codelite/libpluginu.so: symbol _ZN13wxAuiNotebook7SetFontERK6wxFont, version WXU_2.8 not defined in file libwx_gtk2u_aui-2.8.so.0 with link time reference
The version of the wxwidget is 2.8.11.0, installed from http://apt.wxwidgets.org .

I am not sure why this happened - but maybe a mismatch with the version codelite was built against (David is the one managing codelite.co.uk repo, and I believe he built codelite with the wxWidgets that comes from the repository) - we will have to wait for his comment on this.
Yes, the karmic deb is built against the karmic wxGTK, not against the apt.wxwidgets.org version. That's why you have the problem.

You could downgrade to the karmic version, I suppose, but Eran's advice is more sensible.

Regards,

David
Post Reply