Problem in enabling autocompletion in codelite..

General questions regarding the usage of CodeLite
python.noob
CodeLite Curious
Posts: 7
Joined: Mon Nov 09, 2009 9:03 pm
Genuine User: Yes
IDE Question: c++
Contact:

Problem in enabling autocompletion in codelite..

Post by python.noob »

Hello friends,

Just now i switched my OS from mandriva to ubuntu 9.04... I installed libwxgtk2.8-dev,libwxgtk2.8-dbg,libgtk2.0-dev and build-essentials(for g++) from the repositories. I installed codelite from the repositories and it's up and running(no probs in compiling and running).. But when i tried to have code completion feature in my codelite i read this http://codelite.org/LiteEditor/CodeCompletion. How can i find the path for wxGTK? Is there any way? If u already worked with ubuntu 9.04 how did you enable this? Waiting for your reply...
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem in enabling autocompletion in codelite..

Post by eranif »

Which version of codelite are u using?
Please give an example of code which does not work with code completion
Describe here, step by step what did you do to set up a project
Eran
Make sure you have read the HOW TO POST thread
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Problem in enabling autocompletion in codelite..

Post by DavidGH »

Hi,

Using 'locate' shows that there's a /usr/include/wx-2.8 directory containing the headers.

Regards,

David
python.noob
CodeLite Curious
Posts: 7
Joined: Mon Nov 09, 2009 9:03 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Problem in enabling autocompletion in codelite..

Post by python.noob »

Thanks eran and david for your replies.. I compiled a widgets program which showed an error like /usr/include/wx-2.8/wx/string.h doesn't have the method.. so in the tags database i added /usr/include/wx-2.8/wx and it worked like a charm (U know mistakes are the secret of success :) :) )..
However when i'm typing for example wxF (for wxFrame) if i press ctrl+return (manually in the midst of typing) it shows the available variables.classes etc., I want the codelite to show list automatically when i start typing wx... Is there a way to do so?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem in enabling autocompletion in codelite..

Post by eranif »

python.noob wrote:Is there a way to do so?
No. code completion in codelite is on demand (meaning: you need to invoke it to get it)

The only "automated" code-completion is when typing '->', '::' or '.' for an instance of class/struct

Eran
Make sure you have read the HOW TO POST thread
Post Reply