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
 C++ variable completion error
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

fezztah
New Member

United Kingdom
3 Posts

Posted - Sep 12 2013 :  09:11:05 AM  Show Profile  Reply with Quote
Really frustrating problem when typing instances of variables in C++, it auto-completes with brackets as if this was a function or initialisation. This is v10.7.1940.0




accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 13 2013 :  7:05:16 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=60805

For now, a workaround would be to use the other form:

bool variable = false;

Edited by - accord on Sep 13 2013 7:06:26 PM
Go to Top of Page

fezztah
New Member

United Kingdom
3 Posts

Posted - Sep 14 2013 :  03:10:01 AM  Show Profile  Reply with Quote
That work around fails, you don't get the chance to type '=', it inserts the brackets immediately. This same behaviour occurs with instances of pointer variables too. The only option I could see is to turn off the option that auto-adds ( { [ completely.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 14 2013 :  11:10:14 AM  Show Profile  Reply with Quote
accord means to replace the declaration:

bool g_keyPressed(false)

with:

bool g_keyPressed = false;

I hope this is more clear.

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

fezztah
New Member

United Kingdom
3 Posts

Posted - Sep 15 2013 :  05:48:33 AM  Show Profile  Reply with Quote
Ah, I see what you mean now.
C++11 initialisation looks like a bit like a function signature and that is confusing VAssist, but if you go back to traditional variable initialisation then there is no such confusion and everything works OK.

Definitely needs addressing, but that is a good work around for now. Thanks.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 17 2013 :  9:11:49 PM  Show Profile  Reply with Quote
I actually mistook your variable for a function declaration myself on first reading the screen shot.

This change of format is just a workaround for now. This is on our list of things to fix, but unfortunately I don't currently have an estimate for when this will be done.

zen is the art of being at one with the two'ness
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