Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Multiple Versions of Same File Opened

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
rainbowrunner Posted - Jun 19 2009 : 11:02:41 PM
When using a VAX feature that causes a file to be opened, like Find Symbol, VAX can open the same file multiple times. This doesn't seem to happen always, only when the existing view of the document was opened from the solution explorer rather than by VAX.

The behaviour is harmful because Visual Studio apparently doesn't regard these as multiple views of the same document, so if you do a "Save All", which version ends up written to disk is arbitrary, yet both can be closed without a "Save Changes" dialogue. This causes code to be lost if you close a file with changes that were overwritten by the alternate version on disk.
10   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jun 25 2009 : 12:13:37 PM
If this ever happens again it would be good to know what the trigger was.

I am wondering if opening the file via the "wrong" path with the IDE's Open File dialog might have triggered this somehow, since VA would have seen the same file with two different paths. Its not a very good theory, but it is possible.
rainbowrunner Posted - Jun 25 2009 : 01:26:31 AM
Sorry, but when I came to experiment with it this morning, the problem is gone. I've tried all the combinations I can think of of rebuilding the symbols in one place then opening the project from the other but they all work fine - files opened from the solution explorer have the same path as those opened by VA. I have rebooted the machine a couple of times since yesterday, so maybe that did it.

You can get the same effect of having a file open twice simply using "Open File" and opening it through the junction path or not depending on where the project is opened from, but that's not what I was doing before, it worked just from the solution explorer. Obviously this is an inherent problem with Visual Studio.

I'm sure you now think I'm a fruitcake I'll post again if I can reproduce it.
sean Posted - Jun 24 2009 : 8:01:15 PM
rainbowrunner: you wrote that the problem is only with Find Symbol. How are you invoking that command?
feline Posted - Jun 24 2009 : 6:54:19 PM
I have added a second hard drive to my virtual machine test environment, formatted it as NTFS and assigned it the drive letter Z.

I have created a junction point on this new Z drive, pointing at a solution on my C drive, and opened the solution via the Z drive directory.

There is still no sign of this problem.

Can you please try pressing the button:

VA Options -> Performance -> Rebuild symbol databases

and then restarting the IDE, and loading the problem solution via the Z drive junction. Does this make any difference, or are you still seeing the same problem?

It is possible something in VA's symbol database is a factor.
rainbowrunner Posted - Jun 23 2009 : 2:06:43 PM
I'm apparently using 1724 as well. Drive z is a real drive (partition) that just contains junctions to other places. The problem is still there when I open the same solution from its real path on drive d, which would seem to indicate that the "z" paths are somewhere in VA's cached parsing information, since the project file only contains relative paths with no mention of drive z.

I previously said this happens with any VA command that opens a file, which is wrong, sorry. It seems to be just Find Symbol.
feline Posted - Jun 23 2009 : 1:16:24 PM
So far I cannot reproduce the problem, using Vista 64 bit and junction 1.05, the latest version.

What is Z drive? Junction refused to let me create a Z drive that did not exist, so I just created a junction from C drive to C drive. When I opened my solution via this junction folder on C drive the paths always reported the junction path, and only one copy of the file was opened.

So I wonder if making a junction across drive letters is a factor.

Which version of VA are you using? I tested this with VA 1724.
rainbowrunner Posted - Jun 22 2009 : 8:58:40 PM
quote:
Originally posted by feline

Which OS are you using?

Do you remember exactly how you created this junction? There seem to be a couple of different types of directory links available in Vista, so the type you are using / tool you used to make it might be a factor.



The OS is 64-bit Vista. The junction is a junction point as opposed to a symlink or hard link, created with Mark Russinovich's 'junction' tool. Here's the about box info in case it's any use:

Microsoft Visual Studio 2008
Version 9.0.21022.8 RTM
Microsoft .NET Framework
Version 3.5

Installed Edition: Professional

Microsoft Visual C# 2008   
Microsoft Visual C# 2008

Microsoft Visual C++ 2008   
Microsoft Visual C++ 2008

Microsoft Visual Studio 2008 Tools for Office  
Microsoft Visual Studio 2008 Tools for Office

Intel(R) C++ Compiler Integration   Package ID: w_cproc_p_11.0.072
Intel(R) C++ Compiler Integration for Microsoft Visual Studio* 2008, Version 11.0.759.2008 ,
Copyright (C) 2002-2008 Intel Corporation.
* Other names and brands may be claimed as the property of others

Visual Assist X   
For more information about Visual Assist X, see the Whole Tomato Software website at http://www.WholeTomato.com.
Copyright (c) 1997-2009 Whole Tomato Software, Inc.

VMDebugger
For more information about VMware Inc, see their website at
http://www.vmware.com
Copyright (c) 2008 VMware, Inc.


*edited by feline to make this narrower*
feline Posted - Jun 22 2009 : 12:45:19 PM
Which OS are you using?

Do you remember exactly how you created this junction? There seem to be a couple of different types of directory links available in Vista, so the type you are using / tool you used to make it might be a factor.
rainbowrunner Posted - Jun 21 2009 : 6:26:53 PM
Thanks for taking the time to look into this. I realized that it's probably my weird setup that's causing it. The project I'm editing is at location
z:\\dev\\proj\\xxx
where "dev" is an NTFS junction point that redirects to
d:\\users\\rainbowrunner\\dev\\proj\\xxx\\
A file opened with the solution explorer is opened with the disk path
d:\\users\\rainbowrunner\\dev\\proj\\xxx\\whatever.cpp
(as indicated by the mouse-over tooltip on the file tab), whereas one opened by VAX shows the path
z:\\dev\\proj\\xxx\\whatever.cpp
even though they are the same file; so I assume this is a path comparison problem.
accord Posted - Jun 21 2009 : 10:35:52 AM
Sorry to hear this. It sounds awful.

I've used Visual Assist for years, and I use Find Symbol very frequently, but never experienced anything like this.
So we have to find out that what caused this bug on your computer.

Do you use any other Visual Studio plugins?
Is this a new problem, or you have experienced this problem also with older versions?

Can you please go to:

VA Options -> System Info -> Copy Info

and paste the details (from the clipboard) into your reply. This will give us the basic information about your setup.

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