Page 1 of 2

Auto suggestion and code navigation not working entirely

Posted: Tue Nov 23, 2010 7:39 am
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

Re: Auto suggestion and code navigation not working entirely

Posted: Tue Nov 23, 2010 9:24 am
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

Re: Auto suggestion and code navigation not working entirely

Posted: Tue Nov 23, 2010 10:48 am
by etoy
press . after variable class1, nothing happened
select "Goto Declaration" on Class1, nothing happened

Re: Auto suggestion and code navigation not working entirely

Posted: Tue Nov 23, 2010 11:11 am
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

Re: Auto suggestion and code navigation not working entirely

Posted: Tue Nov 23, 2010 11:32 am
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!
...

Re: Auto suggestion and code navigation not working entirely

Posted: Tue Nov 23, 2010 12:21 pm
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

Re: Auto suggestion and code navigation not working entirely

Posted: Tue Nov 23, 2010 12:52 pm
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 .

Re: Auto suggestion and code navigation not working entirely

Posted: Tue Nov 23, 2010 1:02 pm
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

Re: Auto suggestion and code navigation not working entirely

Posted: Tue Nov 23, 2010 1:08 pm
by etoy
Okay, I will try it.
Thanks for your help!

Re: Auto suggestion and code navigation not working entirely

Posted: Tue Nov 23, 2010 2:59 pm
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