IBPP and Codecompletion

CodeLite installation/troubleshooting forum
borr
CodeLite Enthusiast
Posts: 34
Joined: Tue Dec 16, 2008 10:43 am
Contact:

IBPP and Codecompletion

Post by borr »

I have IBPP (http://www.ibpp.org/) and latest version of Codelite. And I want codelite to autocomplete names of members of IBPP classes. I have create external tag database for IBPP includes, attached this tags and re-tagged the current cpp-file but autocomplete not works well.

Code: Select all

        IBPP::/*CodeCompletion work*/Transaction tr = IBPP::/*CodeCompletion*/TransactionFactory();
	IBPP::/*CodeCompletion*/Database db = IBPP::/*CodeCompletion*/DatabaseFactory();
	IBPP::/*CodeCompletion*/Statement st = IBPP::/*CodeCompletion*/StatementFactory(db, tr);
        tr->/*CodeCompletion NOT work*/

Code: Select all

   wxStatusBar* statusBar = new wxStatusBar(this, wxID_ANY);
   statusBar->/*CodeCompletion NOT work*/
With eclipse Codecompletion work fine.

Sorry my English :oops:
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: IBPP and Codecompletion

Post by eranif »

I will have a look at the IBPP sources

For WX sources, when u created the IBPP external tags, my guess is that you removed the WX tags. you can easily confirm this from:
tags -> manage external tags databases..

select the active database (the one with green marker), now at the bottom pane you should now see the paths from which the tags were generated.

TO solve it: tag the WX include directory and use the same database name as you used for IBPP (so you will get a single database which holds WX + IBPP tags)

Eran
Make sure you have read the HOW TO POST thread
borr
CodeLite Enthusiast
Posts: 34
Joined: Tue Dec 16, 2008 10:43 am
Contact:

Re: IBPP and Codecompletion

Post by borr »

borr wrote:For WX sources, when u created the IBPP external tags, my guess is that you removed the WX tags. you can easily confirm this from:
tags -> manage external tags databases..

select the active database (the one with green marker), now at the bottom pane you should now see the paths from which the tags were generated.

TO solve it: tag the WX include directory and use the same database name as you used for IBPP (so you will get a single database which holds WX + IBPP tags)
I will done it. For WX CodeCompletion work well, not worked ONLY for wxStatusBar
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: IBPP and Codecompletion

Post by eranif »

borr wrote:I have IBPP (http://www.ibpp.org/) and latest version of Codelite. And I want codelite to autocomplete names of members of IBPP classes. I have create external tag database for IBPP includes, attached this tags and re-tagged the current cpp-file but autocomplete not works well.
Indeed, it was a bug in the code completion, the bug was due to the namespaces used and not to template..

I fixed and tested it and it is now working as expected (attached screenshot)

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
borr
CodeLite Enthusiast
Posts: 34
Joined: Tue Dec 16, 2008 10:43 am
Contact:

Re: IBPP and Codecompletion

Post by borr »

Great, Thank you

What about wxStatusBar?

Code: Select all

wxBoxSizer *sz = new wxBoxSizer(wxVERTICAL);
sz->/*CodeCompletion work*/
SetSizer(sz);
wxStatusBar* statusBar = new wxStatusBar(this, wxID_ANY);
statusBar->/*CodeCompletion NOT work*/
My WX path added to tags. Tags re-created. Bat it not help.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: IBPP and Codecompletion

Post by eranif »

borr wrote:What about wxStatusBar?
The problem with wxStatusBar is that it is a define... (CodeLite does not parse macros)

To fix this:
settings -> tags settings -> select the 'Advacnce' tab
Click on the preprocessors button (the [...] button) in the dialog that opens, add:

Code: Select all

wxStatusBar=wxStatusBarBase
Close the dialog

and it should work now

I will add this to be part of the installation.

Eran
Make sure you have read the HOW TO POST thread
borr
CodeLite Enthusiast
Posts: 34
Joined: Tue Dec 16, 2008 10:43 am
Contact:

Re: IBPP and Codecompletion

Post by borr »

Thanks again!
Post Reply