"Open from Vault" not getting solution items.

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
potiguar
Posts: 6
Joined: Fri Feb 08, 2008 8:38 am

"Open from Vault" not getting solution items.

Post by potiguar » Fri Feb 22, 2008 12:21 pm

First let me state how happy I am that version 4.1 is released. We just started using our 30-day demo in our company and are very happy with it, I'm making a strong case for my boss to buy it, we should do it soon.

I have a minor request to make (or maybe I just don't know how to do it properly, perhaps somebody can help me):

In our solutions, we normally have what Visual Studio calls "Solution Folder", which is a virtual organizational unit inside the solution file (not necessairly a physical folder in the disk), to better organize things. For instance one of this folders happen to be called "SQL Scripts", and we keep shortcuts to the .sql files containing scripts to create databases inside it. We find it very practical to have those files always available when working in the solution. In Visual Studio these shortcuts are added using the command "Add solution item" which lets you pick basically any file on the disk.

Our disk structure goes like this: solution file is in the root folder, each project inside its own folder, and an extra folder called "SQL Scripts" where the actual sql scripts files (the ones referenced by the shortcuts) get saved to.

Now, the whole thing was added to a vault repository (Sql script folders included) using the vault client tool, and if I "get latest version" using vault's client at the top-most folder ("trunk"), it does indeed download everything to my local machine with the same structure, and everything works as a charm when opening the .sln file. Lovely.

However, if my machine is totally empty and I first try to open this solution using the "Get from Vault" command inside Visual Studio 2008, it fails to download the files referenced by the shortcuts. The solution does compile but the sql files are missing even though the shortcuts are showing inside the "SQL scripts" solution folder. If I try to open the files I receive an error message stating that file was not found. Only after using Vault client to get the full folder (or just the missing files), I can open them, of course.

Since the information about the location of the sortcuted files is inside the solution file itself as relative paths (as I noticed by opening the .sln file in the notepad) wouldnt it be possible for the Vault plugin to automatically download those files as well when using this command? Certainly it can locate them in the repository using the relative path? If it's not found then don't download, but at least a first attempt could be made?

It's not a showstopper, just a minor annoyance having to use the client to download everything the first time around, but thought I would let you know about it.


Congratulations for the great product.

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Fri Feb 22, 2008 1:20 pm

Thanks for the feedback.

Let me make sure I understand: the solution folder files in this case are not in the same folder as the solution file, but are linked files from another folder beneath the solution file?
Ian Olsen
SourceGear

potiguar
Posts: 6
Joined: Fri Feb 08, 2008 8:38 am

Post by potiguar » Fri Feb 22, 2008 5:45 pm

Yep Ian, that's exactly how it is. Folder "Sql Scripts" is a sub-folder of the folder where the solution file lies. And files inside it are linked to the solution as "Solution items".

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Sat Feb 23, 2008 10:36 am

Thanks for the follow-up. I've confirmed this behavior and logged a bug.
Ian Olsen
SourceGear

potiguar
Posts: 6
Joined: Fri Feb 08, 2008 8:38 am

Post by potiguar » Mon Feb 25, 2008 5:04 am

Thanks Ian. Is there a way to know when this get fixed and released?

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Mon Feb 25, 2008 8:57 am

If you want to email me using the button below, I'll put your email address on the bug, and let you know when it's fixed and about to ship.
Ian Olsen
SourceGear

Post Reply