Code::Blocks Forums

User forums => Help => Topic started by: John on October 28, 2005, 10:54:47 am

Title: Code completion misbehaving
Post by: John on October 28, 2005, 10:54:47 am
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?
Title: Re: Code completion misbehaving
Post by: MortenMacFly on October 28, 2005, 12:54:09 pm
    S.
       ^^^^ nothing happens here
Works well for me. Try a "CTRL + Space" at this point.

Morten.
Title: Re: Code completion misbehaving
Post by: John on October 28, 2005, 01:17:31 pm
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. :)
Title: Re: Code completion misbehaving
Post by: Tjaalie on October 28, 2005, 03:14:23 pm
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,
Title: Re: Code completion misbehaving
Post by: John on October 28, 2005, 04:31:36 pm
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? ...