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
 Please don't change my capitalization
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jamesford42
Junior Member

11 Posts

Posted - Nov 24 2008 :  5:33:28 PM  Show Profile  Reply with Quote
I've noticed visual assist doing this in several places. I will be working in a method that has a local variable called 'callback' (or some other unlucky name) and any time I try to type this word it automatically changes it to CALLBACK ( without prompting ).

So turns out CALLBACK (and probably the same for other cases i've run into) is a define from a header of some other library/project of the solution im working on. Sufficient to say that CALLBACK is NOT actually defined as anything other than my local variable in the context I am working with it.

So, what can I do to prevent this behavior? Can I explicitly say "don't parse this file or project (the one which defines CALLBACK)", or perhaps permanently remove your knowledge of "CALLBACK"... or...

All I can do atm is let it mis-correct me, and then copy-paste over it with the correct capitalization.

jamesford42
Junior Member

11 Posts

Posted - Nov 24 2008 :  5:36:02 PM  Show Profile  Reply with Quote
Even more annoying is that I can't just do ctrl-z to undo the capitalization change.

Lets say I have this line...

(*callback

I type ')' now it looks like...

(*CALLBACK)

I hit ctrl-z, now...

(*CALLBACK

ctrl-z again...

(*callback

back where I started...
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Nov 24 2008 :  9:27:23 PM  Show Profile  Reply with Quote
You can disable the "Repair case" option to prevent this from annoying you (VAssistX|Visual Assist X Options|Advanced|Corrections).

Just to help diagnose the problem, could you please type the following (while Repair Case IS enabled):
(*callback

the press the up-arrow key,
press the down-arrow key
and type )

Does callback get changed to CALLBACK in that scenario?

What version of VS and VAX are you using (you can copy from the System Info page of the VA Options dlg)?
Go to Top of Page

jamesford42
Junior Member

11 Posts

Posted - Nov 25 2008 :  8:45:49 PM  Show Profile  Reply with Quote
The 'arrow key' experiment did not seem to change anything.

Turning off repair case works, for the time being I will leave it off and see if I run into any situations (either that it does not fix or that I would prefer to have it on).

System Info...

VA_X.dll file version 10.4.1649.0 built 2008.09.09
Licensed to:
VA X: [email protected] (Non-renewable license) Support ends 2009.04.24
DevEnv.exe version 8.0.50727.762
msenv.dll version 8.0.50727.762
Font: Consolas 15(Pixels)
Comctl32.dll version 6.0.2900.5512
Windows XP 5.1 Build 2600 Service Pack 3
2 processors

Platform: Custom
Stable Includes:

Other Includes:

Stable Source Directories:

Go to Top of Page

jamesford42
Junior Member

11 Posts

Posted - Dec 01 2008 :  10:35:40 AM  Show Profile  Reply with Quote
Any updates on this topic? Just turning repair case off works fine for me (and thanks for notifying me of its existence), but you seemed to imply in your previous post that there in a bug/improvement possibility in this area. Thanks.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Dec 01 2008 :  11:46:43 AM  Show Profile  Reply with Quote
Many apologies, I got side tracked with getting the new build through testing. So far I cannot reproduce this problem in VS2005 with VA 1709 and VA 1649. I have tried the following very simple test:

static void testCallBackCase()
{
	int *pNum = 0;
	int *callback = 0
	
}


When I type pnum-> this is correctly converted to pNum->, and when I type
callback->
this is left alone.

Can you try the same thing, and see what happens in your solution?

If you turn on:

VA Options -> Advanced -> Fonts and Colors -> Local symbols in Bold
VA Options -> Advanced -> Fonts and Colors -> Stable symbols in Italic

is the local variable "callback" shown in bold? If when you type "callback" it is converted to "CALLBACK" is this shown in italics? If I manually type "CALLBACK" it is shown in italics for me in both versions of VA.

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

mridgwel
New Member

United Kingdom
8 Posts

Posted - Dec 01 2008 :  4:32:35 PM  Show Profile  Reply with Quote
I've had this issue on\\off with VA 1649, but for me it was with an identifier that was defined and not referenced in that project.

Not sure if it helps of is mis-leading as its not something that happens that often for me, but I haven't had it in the VA1707 beta.

Mine was on VS2008 SP1 rather than 2005
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Dec 02 2008 :  07:34:29 AM  Show Profile  Reply with Quote
I am glad you have not seen this so far in VA 1707. Perhaps the problem has been fixed. Please let me know if the problem starts happening again, and I will try and figure out what is going on.

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