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
 does VA relly Restrict Goto results in Acitve prj?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jzq740176597
Tomato Guru

China
329 Posts

Posted - Dec 20 2012 :  11:52:02 PM  Show Profile  Reply with Quote
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))




Creation come from persist!

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 21 2012 :  6:45:57 PM  Show Profile  Reply with Quote
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.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Dec 22 2012 :  11:39:06 AM  Show Profile  Reply with Quote
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
Go to Top of Page

jzq740176597
Tomato Guru

China
329 Posts

Posted - Dec 22 2012 :  8:40:17 PM  Show Profile  Reply with Quote




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

Creation come from persist!
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Dec 22 2012 :  9:16:11 PM  Show Profile  Reply with Quote
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)?
Go to Top of Page

jzq740176597
Tomato Guru

China
329 Posts

Posted - Dec 22 2012 :  10:57:10 PM  Show Profile  Reply with Quote
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!

Creation come from persist!
Go to Top of Page

jzq740176597
Tomato Guru

China
329 Posts

Posted - Dec 22 2012 :  11:02:55 PM  Show Profile  Reply with Quote
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.

Creation come from persist!
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Dec 23 2012 :  11:10:50 AM  Show Profile  Reply with Quote
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.
Go to Top of Page

jzq740176597
Tomato Guru

China
329 Posts

Posted - Dec 23 2012 :  7:59:36 PM  Show Profile  Reply with Quote
Yes! It's Really works!
Thanks a lot!

Creation come from persist!
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