Page 1 of 1

IBPP and Codecompletion

Posted: Tue Dec 16, 2008 10:50 am
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:

Re: IBPP and Codecompletion

Posted: Tue Dec 16, 2008 12:56 pm
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

Re: IBPP and Codecompletion

Posted: Tue Dec 16, 2008 1:30 pm
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

Re: IBPP and Codecompletion

Posted: Tue Dec 16, 2008 2:13 pm
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

Re: IBPP and Codecompletion

Posted: Tue Dec 16, 2008 2:35 pm
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.

Re: IBPP and Codecompletion

Posted: Tue Dec 16, 2008 2:45 pm
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

Re: IBPP and Codecompletion

Posted: Tue Dec 16, 2008 3:52 pm
by borr
Thanks again!