Author Topic: Strange Code Completion with wxWidgets  (Read 3918 times)

Offline miggilin

  • Single posting newcomer
  • *
  • Posts: 3
Strange Code Completion with wxWidgets
« on: May 03, 2008, 04:34:00 am »
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)?

Offline Barking_Mad

  • Multiple posting newcomer
  • *
  • Posts: 47
Re: Strange Code Completion with wxWidgets
« Reply #1 on: May 03, 2008, 08:21:42 am »
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

Offline miggilin

  • Single posting newcomer
  • *
  • Posts: 3
Re: Strange Code Completion with wxWidgets
« Reply #2 on: May 03, 2008, 08:47:15 am »
I wonder if the last post here has something to do with it:
http://forums.codeblocks.org/index.php/topic,6396.msg50448.html#msg50448

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

Offline Barking_Mad

  • Multiple posting newcomer
  • *
  • Posts: 47
Re: Strange Code Completion with wxWidgets
« Reply #3 on: May 04, 2008, 03:38:18 pm »
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

Offline miggilin

  • Single posting newcomer
  • *
  • Posts: 3
Re: Strange Code Completion with wxWidgets
« Reply #4 on: May 07, 2008, 06:26:35 am »
So... No fix? Nothing? Just sucks for me?

Should I file a bug report?

Offline Seronis

  • Almost regular
  • **
  • Posts: 197
Re: Strange Code Completion with wxWidgets
« Reply #5 on: May 07, 2008, 02:13:44 pm »
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.