Problem viewing files from history in VS2005 IDE
Moderator: SourceGear
Problem viewing files from history in VS2005 IDE
Hello,
When I show history on a file from within VS2005, and then select to view a file, I'm prompted for the editor/viewer application. When I click OK, my editor tells me it can't find the file
C:\Documents
I think this means that Vault is copying that file version out to a temp folder, and invoking the editor on the file in the temp folder, but the command line doesn't have quotes around the file name. The editor is then breaking the command line at the spaces, and thinks there are four files to edit rather than one.
I don't observe this behavior in the Vault GUI client - the file comes up in the editor just fine.
Thanks in advance for checking into this!
Regards,
When I show history on a file from within VS2005, and then select to view a file, I'm prompted for the editor/viewer application. When I click OK, my editor tells me it can't find the file
C:\Documents
I think this means that Vault is copying that file version out to a temp folder, and invoking the editor on the file in the temp folder, but the command line doesn't have quotes around the file name. The editor is then breaking the command line at the spaces, and thinks there are four files to edit rather than one.
I don't observe this behavior in the Vault GUI client - the file comes up in the editor just fine.
Thanks in advance for checking into this!
Regards,
David Thompson
JELD-WEN, inc.
JELD-WEN, inc.
Could it be your working folder is not set properly? The working folder can be set through the Solution Explorer in Visual Studio 2005.
From the Visual Studio Help files:
"Sometimes Solution Explorer indicates folder locations marked by wavy underlines. These entries represent invalid paths relative to your working folder. To correct invalid paths, you must change the working folder location.
- In Visual Studio, open Solution Explorer.
- Click an invalid path in the Enter Working Copy Location Here column.
- Click the ellipsis (…) button.
- Type a valid path, for example, http://<local host>/folder1, and click OK. If the folder does not exist, Visual Studio creates one."
From the Visual Studio Help files:
"Sometimes Solution Explorer indicates folder locations marked by wavy underlines. These entries represent invalid paths relative to your working folder. To correct invalid paths, you must change the working folder location.
- In Visual Studio, open Solution Explorer.
- Click an invalid path in the Enter Working Copy Location Here column.
- Click the ellipsis (…) button.
- Type a valid path, for example, http://<local host>/folder1, and click OK. If the folder does not exist, Visual Studio creates one."
My editor is Vim.
My temp folder is
C:\Documents and Settings\DavidT\Local Settings\Temp
There are several spaces right there.
One thing I've noticed is that the value of the %TEMP% environment variable uses short file names (on Windows XP, anyway). So the value of %TEMP% has no spaces in it.
Thanks!
My temp folder is
C:\Documents and Settings\DavidT\Local Settings\Temp
There are several spaces right there.
One thing I've noticed is that the value of the %TEMP% environment variable uses short file names (on Windows XP, anyway). So the value of %TEMP% has no spaces in it.
Thanks!
David Thompson
JELD-WEN, inc.
JELD-WEN, inc.
Well, I've tried it with Vim 6.3 and Vim 7.0. I am coming up with the same results. It appears to me to be a limitation of VS2005 or Vim.
Last edited by Beth on Thu Aug 03, 2006 3:41 pm, edited 1 time in total.
When I show history on a file from within VS2005, and then select to view a file, I'm prompted for the editor/viewer application. When I click OK, my editor tells me it can't find the file
I was under the impression that it worked fine for you when performing similar actions in just Vault, so I did not test that. Weren't you viewing history from within VS2005?? If not, then I'll try again with just Vault. VS does control certain aspects of what can be done with a file when integrated with source control.I don't observe this behavior in the Vault GUI client - the file comes up in the editor just fine.
Yes, that is exactly the issue.
If I view the History dialog via the Vault GUI, right-click an entry, and select View, the file comes up in the external editor.
If I view the History dialog via VS, , right-click an entry, and select View, the external editor gets confused.
In both cases, since it's Vault's History dialog responding to the right-click, I would assume that it's Vault which is invoking the external editor - so why is the behavior different between the Vault GUI and VS?
Thanks!
If I view the History dialog via the Vault GUI, right-click an entry, and select View, the file comes up in the external editor.
If I view the History dialog via VS, , right-click an entry, and select View, the external editor gets confused.
In both cases, since it's Vault's History dialog responding to the right-click, I would assume that it's Vault which is invoking the external editor - so why is the behavior different between the Vault GUI and VS?
Thanks!
David Thompson
JELD-WEN, inc.
JELD-WEN, inc.