News:

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

Main Menu

Code Completion just working "sometimes"

Started by ProbablyX, May 27, 2008, 06:05:19 PM

Previous topic - Next topic

ProbablyX

Hello :)

I'm trying out C::B with wxWidgets and I seem to have a kinda weird problem.

If I drop a button on a form (using the standard form designer), then a wxDirDialog and make an onClick event for the button I cant use code-completion.

If I start writing wxDirDialog the code completion appears, but if I want to access the DirD I dropped on my form (let's call it a) tying a or a. or a-> or a:: doesnt give me anything at all.

Same thing if I do this:
wxDirDialog b = new wxDirDialog()

the code compleiton will help me write wxDirDialog and list the creation parameters for it but when I furter down type b or b-> or what ever nothing happens.

I can compile and run my apps fine using the a and b variables, its just the code compleiton that doesnt work, can this be fixed?

Thanks :)

chca

I'm suffering from such a problem, too. Seems to be similar to this one:

http://forums.next.codeblocks.org/index.php/topic,8375.0.html

Can you check the example code?

ProbablyX

yeh, seems to be the same problem.. It's weird that it hasn't been fixed or resolved =/
Im using Kubuntu 8.04 amd64 so it might be related to the OS. I'm using an SVN build though (from the debian repo found in codeblocks wiki)

MortenMacFly

Quote from: ProbablyX on May 27, 2008, 06:05:19 PM
wxDirDialog b = new wxDirDialog()

when I furter down type b or b-> or what ever nothing happens.
If that is really your code than you are in trouble and the CC plugin cannot know what you want. You create a pointer by using NEW. But you are assigning the value to an object instance variable but then try to access members of a pointer again. That won't work. I wonder that this ever compiled btw...

In addition;: Keep in mind that for new source code you need to save the file (frequently) to let the parser re-parse what you have written. Everything between the last save operation til' you trigger CC is unknown for CC.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]