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
 Changing namespace also changes name of variable
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rueckertch58521
Starting Member

Germany
1 Posts

Posted - Aug 15 2019 :  02:23:54 AM  Show Profile  Reply with Quote
Hey there,

so I'm using the newest version of Visual Assist (v. 2341_2) and I have recognized some strange behavior. When I try to rename a namespace with "Shift+ALT+R" and there is also a variable with the same name as the namespace, VAssist will rename both of them. My intention is to just rename the namespace.

Best regards

feline
Whole Tomato Software

United Kingdom
16086 Posts

Posted - Aug 16 2019 :  07:50:35 AM  Show Profile  Reply with Quote
It sounds like something in your code is confusing our parser. Is this a local variable, a class member variable, a global variable? If you change files and change back, and run Find References on the namespace, does VA still pick up the variable name as well?

I have tried the following very simple example:

namespace testDoubleName
{
	void localFuncInSpace()
	{
		int nTotal, testDoubleName;
		nTotal = 2;
		testDoubleName = 3;
		nTotal += testDoubleName;
	}
}

and VA does not pick up the variable here when I trigger a Find References or Rename on the namespace name. So I am wondering what there is in your code that is confusing our parser.

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:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000