Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Changing namespace also changes name of variable

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
rueckertch58521 Posted - Aug 15 2019 : 02:23:54 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 16 2019 : 07:50:35 AM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000