Failed checkout using VS2003 integration

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

Moderator: SourceGear

Post Reply
ismangil
Posts: 197
Joined: Wed Jun 30, 2004 10:49 am
Location: Sheffield, UK
Contact:

Failed checkout using VS2003 integration

Post by ismangil » Tue Apr 12, 2005 9:42 am

We are long-time users of PVCS and and we are now (at last!) ready to move to Vault. Installed version 3.0.5.

I am currently in the advanced stages of defining the repository structure and working practices.

Using VS2003 integration, I have two solution files for the same working directory, solution 1 connecting to one repository only,
solution 2 contains all the projects in the solution 1 plus additional projects from repository 2.

The solutions and the workind directory were populated using "Add from source control" method.

With solution 1 I have no problems.

It is with solution 2 that I am having problems checking out files that resided in repository 1. Files in repository 2 checks out ok.


Various logs output are below if I try to checkout a file. Projects in solution 1 are all class libraries/non-web.

-----------------
VS2003 Output window

---- Operation started at time 16:34:03 ----
SCCCheckout Method: Object reference not set to an instance of an object.
---- Operation terminated with error at time 16:34:03 ----

-----------------------
SCCLogFileName

04/12/05 16:34:03 | Enter SccCheckout(), pContext=192160576, nFiles=1, lpFileNames=[absolute path to workdir\file name].cs
04/12/05 16:34:03 | Exit SccCheckout(), pContext=192160576, nFiles=1, lpFileNames=[absolute path to workdir\file name].cs


-------------------------
vaultideclient.txt
<add key="classesToLog" value="ide,connection,checkoutlist" />

12-04-2005 16:34:03 <ide>: [<No Name>:3172] [SCCCheckout] comment="", optionString=""
12-04-2005 16:34:03 <connection>: [<No Name>:3172] GetRepositoryStructure started.
12-04-2005 16:34:03 <connection>: [<No Name>:3172] GetRepositoryStructure finished.
12-04-2005 16:34:03 <checkoutlist>: [<No Name>:3172] RefreshCheckOutList started
12-04-2005 16:34:03 <checkoutlist>: [<No Name>:3172] Calling GetCheckOutListChanges(
12-04-2005 16:34:03 <connection>: [<No Name>:3172] GetCheckOutListChanges started.
12-04-2005 16:34:03 <connection>: [<No Name>:3172] GetCheckOutListChanges finished.
12-04-2005 16:34:03 <checkoutlist>: [<No Name>:3172] GetCheckOutListChanges returned: completeListReturned False, newLastUpdate 01-07-1850 00:00:00
12-04-2005 16:34:03 <checkoutlist>: [<No Name>:3172] New items:
12-04-2005 16:34:03 <checkoutlist>: [<No Name>:3172] <null>
12-04-2005 16:34:03 <checkoutlist>: [<No Name>:3172] Release items:
12-04-2005 16:34:03 <checkoutlist>: [<No Name>:3172] <null>
12-04-2005 16:34:03 <checkoutlist>: [<No Name>:3172] Source and target check out list revisions are both 89, and last locking date match. Returning with no update
12-04-2005 16:34:03 <checkoutlist>: [<No Name>:3172] RefreshCheckOutList finished

ismangil
Posts: 197
Joined: Wed Jun 30, 2004 10:49 am
Location: Sheffield, UK
Contact:

Post by ismangil » Tue Apr 12, 2005 10:00 am

As an additional info, I tried checking out the file from Vault GUI client and it was successful. When I refresh source control status in VS2003, it shows it correctly checked out.

When I "Undo checkout" within VS2003:

---- Operation started at time 16:55:57 ----
SCCUncheckout Method: Object reference not set to an instance of an object.
---- Operation completed successfully at time 16:55:57 ----

Again, I was successful in undoing the checkout via GUI client and refreshing status.

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Tue Apr 12, 2005 10:14 am

Unfortunately, the IDE client only supports connecting to a single repository for a solution. You'll need to either put everything in one repository, or not use IDE integration for the projects in the solution that are in the 2nd repository.

ismangil
Posts: 197
Joined: Wed Jun 30, 2004 10:49 am
Location: Sheffield, UK
Contact:

Post by ismangil » Tue Apr 12, 2005 10:34 am

dan wrote:Unfortunately, the IDE client only supports connecting to a single repository for a solution. You'll need to either put everything in one repository, or not use IDE integration for the projects in the solution that are in the 2nd repository.
:cry:

This is very bad news. The choice of not using IDE integration or using one repository are both very, very unattractive.

My fault probably for assuming it will work...

If we use a single repository we will probably need to turn on folder security, and as various posts suggest it is a performance killer.

Right, need to test single repository option then...

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Tue Apr 12, 2005 1:21 pm

Sorry about that. I'll add this as a feature request. However, it is tricky, since a transaction cannot include items from multiple repositories, which is why it isn't yet a feature.

ismangil
Posts: 197
Joined: Wed Jun 30, 2004 10:49 am
Location: Sheffield, UK
Contact:

Post by ismangil » Wed Apr 13, 2005 1:26 am

dan wrote:Sorry about that. I'll add this as a feature request.
Thanks, and for further consideration, in the "number of vote" field maybe, our team are starting off with around 20 or so licenses, in addition with the 25 I understand is already in use somewhere else within the company, this will probably increase close to 120 or so in total for all developers within the next year.

Many thanks again for the quick reply.

Guest

Post by Guest » Wed Apr 13, 2005 5:10 am

As a further progress in this issue, we realized that we can actually use two solutions, one for each repository. This works well because, for reasons unrelated to source control, we are not using project references anyway, so strictly speaking there is no real reason for any solution to access two repositories at once. The one solution method was for convenience, because with two solutions you need also two instances of VS2003 running if you want to work simultaneously.

Post Reply