News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Strange Code Completion with wxWidgets

Started by miggilin, May 03, 2008, 04:34:00 AM

Previous topic - Next topic

miggilin

I've enabled code completion using wxWidgets, but strangely for some classes it doesn't give what I would imagine it should. For instance:
wxButtonBase instead of wxButton
wxAppBase instead of wxApp

It doesn't do this for all classes, and I can't figure out why it doesn't offer the other classes (wxButton, wxApp, etc) when they all exist there. Is this a configuration problem or a CB bug (or what)?

Barking_Mad

Yeah i noticed that, anoying. I was allways getting wxWindowBase instead of wxWindow or something similar.
WooF! WooF! - Ubuntu 8.10 & CB 5432 & GCC 4.3.2
To see the world in a grain of sand and heaven in a wild flower
To hold infinity in the palm of your hand and eternity in an hour - W.B

miggilin

I wonder if the last post here has something to do with it:
http://forums.next.codeblocks.org/index.php/topic,6396.msg50448.html#msg50448

Even so, is there way way to fix it/get it working?

Barking_Mad

Another thing about CB code completion is its partial recognition.

From a set of words with common characters it doesnt allow tabbed completion of words to the nearest ambiguous symbol.

For example from the set:

BaseObject
BaseHpuse
BaseIsReallyDeep
BaseSomthingElse

Typing B... will invoke a completion list as seen above, but hitting tab simply completes it to the first object in the list, the completion algo is making assumptions on ambiguities here. It would be more efficient to have it complete to the nearest ambiguous letter:

B... TAB...Base...I....TAB...BaseIsReallyDeep

i.e. same as UNIX shell completion.
WooF! WooF! - Ubuntu 8.10 & CB 5432 & GCC 4.3.2
To see the world in a grain of sand and heaven in a wild flower
To hold infinity in the palm of your hand and eternity in an hour - W.B

miggilin

So... No fix? Nothing? Just sucks for me?

Should I file a bug report?

Seronis

If you would do a forum search on code completion you would see there has been a lot of (fairly recent) posts on the devs redesigning the code completion functionality.  It explains whats going on.