Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: ossLover on October 07, 2010, 02:41:53 pm

Title: Autocompletion bug?
Post by: ossLover on October 07, 2010, 02:41:53 pm
OS: Linux Debian
Built version: 6585
Language: C


Hello guys,

I have an issue with autocompletion.
First I show you a simple example code where the porblem occurs:
Code
struct object_x {
int a;
};

struct object_y {
int b;
struct object_x x;
};

//Here's the problem
int main()
{
        struct object_y o_y;
        o_y. ----> b
               ----> emtpy, no 'x' is shown.
}
Autocompletion doesn't show member x of struct object_y, why? A bug failing to parse a struct object within a struct?
If it's a bug, can someone please report it? I don't have an acount and I will sure forget it etc.
I than ignore the problem for now, and hope it will be fixed soon when updating C::B.

If not, can anyone please give me fix?
Thank you.
Title: Re: Autocompletion bug?
Post by: Folco on October 08, 2010, 01:05:30 am
I get the same problem with code completion branch svn 6677 (Kubuntu 10.04 64 bits).

(BTW, completion of function pointers in the structures works fine now, thank you :))
Title: Re: Autocompletion bug?
Post by: Loaden on October 08, 2010, 03:06:38 am
confirmed!
Title: Re: Autocompletion bug?
Post by: Loaden on October 08, 2010, 11:03:44 am
Fixed in r6681! :)
Title: Re: Autocompletion bug?
Post by: Folco on October 08, 2010, 11:37:40 am
I confirm. :)

ossLover, you can use that to retrieve sources : svn checkout svn://svn.berlios.de/codeblocks/branches/codecompletion_refactoring CBsrc