News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Code completion misbehaving

Started by John, October 28, 2005, 10:54:47 AM

Previous topic - Next topic

John

I've built C::B rc2 on Fedora Core 4.
Here is what I discovered. It refuses "to codecomplete" struct members if the structure either the variable are declared in a global context like this:
---
struct s { int i, j; };
s S;
int main()
{
    S.
       ^^^^ nothing happens here
---
Is it right for now?

MortenMacFly

Quote from: John on October 28, 2005, 10:54:47 AM
    S.
       ^^^^ nothing happens here
Works well for me. Try a "CTRL + Space" at this point.

Morten.
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]

John

I tried... Nothing happens though. :( It works when 'struct' is somewhere in a header file automatically provided I use the local (in the function) definition of the variable only. :)

Tjaalie

I don't realy know if I'm right. But when this kinds of things happen to me
I just save the file and then try it agian. And it all works agian.

Tjaalie,

John

Yippee! Thanks! It works! I'll proceed to explore it!
Though it still crushes suddenly sometimes I like it...
Is it a bug? Why I have to save every time? ...