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
 Feature Requests
 Again: Open Corresponding file: too many choices
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

HolgerGothan
New Member

6 Posts

Posted - Jul 25 2008 :  07:50:42 AM  Show Profile  Reply with Quote
Hi,

Build 1645:
"Open Corresponding File (Alt+O) is smarter about identically named files in distinct directories."

but not smart enough:
>100 Projects in Solution
Something like ChildFrm.h, MainFm.cpp, ...
Alt+O -> very, very long list with choices


Of course I 've read
http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=5814

maybe:

a)
The choice list should be reduced
to files in the same directory as the "source"
if there is any. Otherwise it's ok to search
all directories.
(Work's really fine with
MFCNext-Files (different dir for header
and source ))

b)
Files in the same directory as the "source"
should be shown on top of the list

Bye, Holger.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 25 2008 :  08:41:42 AM  Show Profile  Reply with Quote
Can you give me an example of a situation with file and pathnames, where alt+o produces too many choices?
This feature is getting more and more complex (and clever), so it is not easy to always see what change is need to improve the behavior without breaking other situations.
Go to Top of Page

HolgerGothan
New Member

6 Posts

Posted - Jul 25 2008 :  08:53:32 AM  Show Profile  Reply with Quote
Hi,

I have a lot of projects (>100)

E:\\Projects\\CE\\Project1\\ChildFrm.h
E:\\Projects\\CE\\Project1\\ChildFrm.cpp
E:\\Projects\\CE\\Project2\\ChildFrm.h
E:\\Projects\\CE\\Project2\\ChildFrm.cpp
E:\\Projects\\CE\\Project3\\ChildFrm.h
E:\\Projects\\CE\\Project3\\ChildFrm.cpp
E:\\Projects\\Project4\\ChildFrm.h
E:\\Projects\\Project4\\ChildFrm.cpp
...

if I have E:\\Projects\\Project3\\ChildFrm.cpp
opened and press Alt+O then I can choose
between all ChildFrm's. Because nearly evry
Project has a ChildFrm.h/ChldFrm.cpp
it is a very long list.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jul 25 2008 :  1:12:38 PM  Show Profile  Reply with Quote
Are all of these files added to the solution? If VA can only see some of them then it will not know how to pair them up correctly, so you will get the menu when you press alt-o.

If you close all open windows, then show the OFIW dialog and filter it on "ChildFrm" do you see an even number of files? Are all of the pairs complete?

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

HolgerGothan
New Member

6 Posts

Posted - Jul 28 2008 :  04:11:15 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline

Are all of these files added to the solution?
If VA can only see some of them then it will not know how to pair them up correctly, so you will get the menu when you press alt-o.



yes, all included

quote:

If you close all open windows, then show the OFIW dialog and filter it on "ChildFrm" do you see an even number of files? Are all of the pairs complete?


I can see evry ChildFrm.h and ChildFrm.cpp

bye
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jul 28 2008 :  10:55:27 AM  Show Profile  Reply with Quote
Can you try opening this VS2005 format test project:

http://forum.wholetomato.com/colin/forumimages/cpp_alt_o_duplicates_test.zip

and see if you have any problems with Alt-o here? I am not seeing any problems with VA 1646, alt-o takes me directly to the matching file and the alt-o menu is never shown.

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

HolgerGothan
New Member

6 Posts

Posted - Jul 29 2008 :  04:27:03 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline

Can you try opening this VS2005 format test project:

http://forum.wholetomato.com/colin/forumimages/cpp_alt_o_duplicates_test.zip

and see if you have any problems with Alt-o here? I am not seeing any problems with VA 1646, alt-o takes me directly to the matching file and the alt-o menu is never shown.



Hi,
Alt+O is correct with your Project.
If I add some of my own projects to solution
it is still correct.
It seems, that it is a problem with my solution -
but I can't rebuild it. To many projects.

my Alt+O-list:
http://www.dachdesigner.de/VAssistAltO.jpg

my system info:
VA_X.dll file version 10.4.1646.0 built 2008.07.18
Licensed to:
VA X: [email protected] (1-user license) Support ends 2009.06.10
DevEnv.exe version 9.0.21022.8
msenv.dll version 9.0.21022.8
Font: Times New Roman 29(Pixels)
Comctl32.dll version 6.10.6001.18000
Windows Vista 6.0 Build 6001 Service Pack 1
4 processors

Platform: Win32
Stable Includes:
D:\\Programme\\Microsoft Visual Studio 9.0\\VC\\include;
D:\\Programme\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\include;
C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\include;
C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\include;

Other Includes:

Stable Source Directories:
D:\\Programme\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\mfc;
D:\\Programme\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\mfcm;
D:\\Programme\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\atl;
D:\\Programme\\Microsoft Visual Studio 9.0\\VC\\crt\\src;


Bye, Holger.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jul 29 2008 :  11:40:28 AM  Show Profile  Reply with Quote
The picture will not load for me.

Can you easily get the full paths of all of these files as a text file? I am wondering if there is anything "odd" about any of the paths. If there is a stray file in an unexpected directory, or something like that.

Do any of the directory names use Unicode or Extended characters?

Either VA is simply feeling overwhelmed by the number of files, or there is something subtle that is causing the problem.

A second approach, do you have the time and hard drive space to make a complete copy of your solution? If so, in this copy, you could simply "delete" projects a few at a time and see if / when the problem goes away. This might shed some light on what is causing the problem.

If you try this I would recommend closing and re-loading the solution after each block of deletes, to make sure that the IDE has saved out the changes and VA has seen them.

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

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jul 29 2008 :  12:05:12 PM  Show Profile  Reply with Quote
When you filter the OFIS list by typing childfrm, is each pair in a separate unique directory?
Do any pairs sit in the same directory as another pair?
Go to Top of Page

HolgerGothan
New Member

6 Posts

Posted - Jul 30 2008 :  04:53:53 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline

The picture will not load for me.


Sorry, it is now
http://www.dachdesigner.de/DontDelete/VAssistAltO.jpg

quote:
Originally posted by feline

Can you easily get the full paths of all of these files as a text file? I am wondering if there is anything "odd" about any of the paths. If there is a stray file in an unexpected directory, or something like that.

Do any of the directory names use Unicode or Extended characters?

Either VA is simply feeling overwhelmed by the number of files, or there is something subtle that is causing the problem.

A second approach, do you have the time and hard drive space to make a complete copy of your solution? If so, in this copy, you could simply "delete" projects a few at a time and see if / when the problem goes away. This might shed some light on what is causing the problem.

If you try this I would recommend closing and re-loading the solution after each block of deletes, to make sure that the IDE has saved out the changes and VA has seen them.


I have prepared a smaller version of my solution.
(around 5 MB)
http://www.dachdesigner.de/DontDelete/Projekte.zip
Solution file is
Projekte\\MF_Dach\\MF_Dach\\MF_Dach.sln
to reproduce my problem:
open
solution explorer\\tech. Programme\\Roofbase\\header Files\\ChildFrm.h
Alt+O shows long list
or open
solution explorer\\tech. Programme\\Roofbase\\header Files\\stdafx.h
Alt+O shows long list

Bye, Holger.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jul 30 2008 :  10:04:38 AM  Show Profile  Reply with Quote
Looking at the screen shot (which now works ) look at the very top of the file list, there is an unpaired file here. There is a second unpaired file further down the list, which I am guessing is the matching file for the currently open file.

I have the zip file, thank you for that. Opening the solution in VS2008 I have opened just one code file:

\\Projekte\\32 Bit\\RoofBase\\ChildFrm.h

I have then used Alt-Shift-O to show the Open File dialog, and filtered it on childfrm. and clicked on the Path column header to sort the list. The very first item is:

\\Projekte\\32 Bit\\CE\\KonvertAufmass\\ChildFrm.h

but there is no matching cpp file. Looking at the files on the hard drive the matching file:

\\Projekte\\32 Bit\\CE\\KonvertAufmass\\ChildFrm.cpp

does exist, but it does not seem to be part of this test solution. If you look on your machine do you seeing the same thing?

I have tried to find this header file in Solution Explorer, but so far I am not having much luck. The IDE is being uncoperative *sigh*

However this unpaired header file is going to confuse VA, and is probably the cause of these problems.

zen is the art of being at one with the two'ness

Edited by - feline on Jul 30 2008 10:06:53 AM
Go to Top of Page

HolgerGothan
New Member

6 Posts

Posted - Jul 30 2008 :  10:35:07 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline

Looking at the screen shot (which now works ) look at the very top of the file list, there is an unpaired file here. There is a second unpaired file further down the list, which I am guessing is the matching file for the currently open file.

I have the zip file, thank you for that. Opening the solution in VS2008 I have opened just one code file:

\\Projekte\\32 Bit\\RoofBase\\ChildFrm.h

I have then used Alt-Shift-O to show the Open File dialog, and filtered it on childfrm. and clicked on the Path column header to sort the list. The very first item is:

\\Projekte\\32 Bit\\CE\\KonvertAufmass\\ChildFrm.h

but there is no matching cpp file. Looking at the files on the hard drive the matching file:

\\Projekte\\32 Bit\\CE\\KonvertAufmass\\ChildFrm.cpp

does exist, but it does not seem to be part of this test solution. If you look on your machine do you seeing the same thing?

I have tried to find this header file in Solution Explorer, but so far I am not having much luck. The IDE is being uncoperative *sigh*

However this unpaired header file is going to confuse VA, and is probably the cause of these problems.


Hi,

yes, \\Projekte\\32 Bit\\CE\\KonvertAufmass\\ChildFrm.cpp is unused and
after deleting \\Projekte\\32 Bit\\CE\\KonvertAufmass\\ChildFrm.h from solution Alt+O is now ok.

So I have to look for all other cases for the same
problem (like stdafx.h/stdafx.cpp, global.h/global.cpp, ...)

btw: Is this a bug or a feature?

bye, Holger.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jul 30 2008 :  2:17:52 PM  Show Profile  Reply with Quote
It is somewhere in between a bug and a feature. Basically when you have the three files:

DirOne\\ChildFrm.cpp
DirTwo\\ChildFrm.cpp
DirTwo\\ChildFrm.h

what is VA to do? Often matching cpp and .h files are kept in different directories, so VA cannot make to many assumptions about things based simply in the full path.

If there are 2 pairs then it is a fair assumption that they match up, but here, it is no longer such a good assumption, so VA gives up and asks you what to do.

Looking for the other stray files, just filter and then sort the Open File dialog on path and then scroll down it. It should be quite quick and easy to pick out the unpaired files.

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