Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Over enthusiastic autocompletion of struct members
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

DarcyW
New Member

New Zealand
4 Posts

Posted - Oct 17 2010 :  4:15:28 PM  Show Profile  Reply with Quote
Hi, I've done a bit of a forum search but couldn't find anything that deals with this problem.

When using auto-complete with structures Visual Assist displays all members even if they're not accessable at that level.

This is something that Visual Assist has been doing since I started using it about four years ago. Because I work exclusively in embedded C, structures are my most valuable asset - it's the only way to create semi-OO type design.

This isn't a problem if I typedef my structs and then include the new type. That has typically been my work around in 99% of cases but in a few scenarios where a structure is only used locally, typedef'ing is just overkill to avoid this problem.

Is this a bug or a configuration option I haven't found?

Thanks
Darcy




static struct  
{
    uint32_t var_general_1;
    uint32_t var_general_2;
    
    struct  
    {
        uint8_t var_setup_1;
        uint8_t var_setup_2;
        uint8_t var_setup_3;
    } setup_vars;

    struct  
    {
        bool    var_req_1;
        uint8_t	var_req_2;
    } request;

} my_struct;

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 18 2010 :  12:33:58 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description:

case=3548
Go to Top of Page

DarcyW
New Member

New Zealand
4 Posts

Posted - Nov 03 2010 :  8:44:01 PM  Show Profile  Reply with Quote
Hi guys, are there any plans to resolve this?

Cheers
Darcy
Go to Top of Page

Dusan
Whole Tomato Software

Slovakia
177 Posts

Posted - Nov 04 2010 :  03:44:45 AM  Show Profile  Reply with Quote
This issue should have biggest priority, because it is confusing all C++ programmers from beginnings of VA.. As you know C++ programmers are very versatile and proud, so nobody wanted to say, it an BUG because issue is not replicable with simple structs, but only with those nested...
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 04 2010 :  04:51:44 AM  Show Profile  Reply with Quote
I've increased the priority of this bug for you.
Go to Top of Page

Dusan
Whole Tomato Software

Slovakia
177 Posts

Posted - Nov 04 2010 :  07:29:51 AM  Show Profile  Reply with Quote
quote:
Originally posted by accord

I've increased the priority of this bug for you.


Thank you...
Go to Top of Page

DarcyW
New Member

New Zealand
4 Posts

Posted - Nov 04 2010 :  6:17:06 PM  Show Profile  Reply with Quote
Ditto, thanks very much. When working on embedded projects in C, structures are as important to me as classes... You can go a long way towards OO type development with the use of structs.

Awesome, thanks.
Go to Top of Page

DarcyW
New Member

New Zealand
4 Posts

Posted - Dec 01 2010 :  8:52:04 PM  Show Profile  Reply with Quote
Hi guys,

Has this issue been resolved? I find myself changing the method I use to build control structures just to avoid this problem. It would be helpful to know if this had been fixed.

Thanks
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18950 Posts

Posted - Dec 02 2010 :  2:46:26 PM  Show Profile  Reply with Quote
Unfortunately this has not yet been fixed. It is down as an urgent bug, and hopefully it will be fixed soon, but I don't currently have any estimate on when it will be done.

This thread should be updated when this has been fixed.

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Mar 17 2011 :  11:37:11 PM  Show Profile  Reply with Quote
case=3548 is fixed in build 1845

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000