Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 does VA relly Restrict Goto results in Acitve prj?

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
jzq740176597 Posted - Dec 20 2012 : 11:52:02 PM
When i have this option checked;
And Use Goto(Alg+g) on some function,It's still has few other files options appear.

(The other files don't has the same name but contain same phototype functions the caret motivate the Goto function and located on different Directory ( other project and not in current solution))



8   L A T E S T    R E P L I E S    (Newest First)
jzq740176597 Posted - Dec 23 2012 : 7:59:36 PM
Yes! It's Really works!
Thanks a lot!
sean Posted - Dec 23 2012 : 11:10:50 AM
I would expect the menu to appear since you have "if solution is not empty" enabled. That tells VA that the projects are incomplete or otherwise can't be relied on to determine all of the files associated with the solution.

Try disabling that option and then doing a symbol rebuild.
jzq740176597 Posted - Dec 22 2012 : 11:02:55 PM
When I delete stdafx1.h and stdafx1.cpp, open the proect again,only 3-suggestions.



when I restore 2 files,the suggestion list is the same as before.
jzq740176597 Posted - Dec 22 2012 : 10:57:10 PM
quote:
Do both sets of stdafx files appear in the Files is Solution dialog (alt+shift+o)?
No
quote:
Do you have the "if solution is not empty" checkbox checked in the VA Options dialog (on the Projects | File Handling page)?

Yes!
sean Posted - Dec 22 2012 : 9:16:11 PM
Do both sets of stdafx files appear in the Files is Solution dialog (alt+shift+o)?

Do you have the "if solution is not empty" checkbox checked in the VA Options dialog (on the Projects | File Handling page)?
jzq740176597 Posted - Dec 22 2012 : 8:40:17 PM




I create a new console32 projcet locate in E:\\C++Works,Like the gif show:
I type a Void Foo() function declare in stdafx.h and a blank imp in stdafx.cpp.
To illustrate the problem,I Create a pair of file,name stdafx1.h and stdafx1.app also with a copy of Void Foo() function declare in .h and imp in cpp.they locate in E: root directory.
Of course they are not in the active project or the solution.But have opened once in the active prject context.then have closed the 2 file.
when I press Alg+G,The appearance is like preceding picture.
I think is Odd.I have encounter this situation many times.

Even sometimes the File in current project with a long path and the external file with only the file name appears misleading me think the short form must is the file in the current project.
After choose and modify it,Found that I have changed the file belongs to the other project.

Hope VA can deal with it,is rare the user want to modify the file outside the current project or the solution.
Regards
sean Posted - Dec 22 2012 : 11:39:06 AM
If the files are actually part of separate Visual Studio projects (and not simply #included), then it would be interesting to see why VA is displaying results from other projects. Can you list the files and what projects they are in? For example:

function foo declared in file a1.h in project A
function foo defined in file a1.cpp in project A
function foo declared in file b1.h in project B
function foo defined in file b1.cpp in project B
accord Posted - Dec 21 2012 : 6:45:57 PM
As the tooltip says "This restriction is automatically lifted in some cases."
So my answer to the question in title is no. Basically yes, but there are exceptions, like you have experienced.

This feature was introduced to help with duplicate symbol names across the solution, like when you have the same class name in more than one project in the loaded solution, so VA filter alt+g results. This way you can navigate in your active project easily.

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