Author Topic: Code completion misbehaving  (Read 4432 times)

John

  • Guest
Code completion misbehaving
« 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?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Code completion misbehaving
« Reply #1 on: October 28, 2005, 12:54:09 pm »
    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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

John

  • Guest
Re: Code completion misbehaving
« Reply #2 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. :)

Offline Tjaalie

  • Multiple posting newcomer
  • *
  • Posts: 40
Re: Code completion misbehaving
« Reply #3 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,

John

  • Guest
Re: Code completion misbehaving
« Reply #4 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? ...