Edit of source file not causing checkout in VS2008

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

Moderator: SourceGear

Post Reply
jgrenadier
Posts: 12
Joined: Sat Apr 22, 2006 2:46 pm

Edit of source file not causing checkout in VS2008

Post by jgrenadier » Wed Apr 15, 2009 3:26 pm

I have a VS2008 WPF project that is using Vault 4.1.4 as
a source control database.

When I begin to edit a source file, I expect that the source file
will be checked out automatically.

Instead, I sometimes (but not always) can edit the file and the checkout does
not occur and there is no error message popup.

Once I notice the problem, I can checkout the file and my
edits are not lost during the checkout process.
I can then checkin the files and all is then ok.

The files are writeprotected correctly before the edit.

Any ideas ?
Jim

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Edit of source file not causing checkout in VS2008

Post by Beth » Thu Apr 16, 2009 8:15 am

In VS Tools - Options - Source Control, which client do you have set, Enhanced or Classic?

Then Vault, under Tools - Options - Concurrent Development, what options do you have set there? You can also access this through the advanced button under one of the sub-categories of VS Tools - Options - Source Control VS Tools - Options - Source Control.
Beth Kieler
SourceGear Technical Support

jgrenadier
Posts: 12
Joined: Sat Apr 22, 2006 2:46 pm

Re: Edit of source file not causing checkout in VS2008

Post by jgrenadier » Thu Apr 16, 2009 10:09 am

1. In VS Tools: "Classic Client".

2. "Auto commit after each operation" - checked.
"Require Checkout before Checkin" - checked.
"Make all files read-only"
"Always request exclusive locks - checked.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Edit of source file not causing checkout in VS2008

Post by Beth » Thu Apr 16, 2009 12:10 pm

There's two things that might be preventing the checkout.

First, check in VS Tools - Options - Source Control - Environment. On the setting for On Edit, make sure it's set to "Check Out Automatically."

If the "Check Out Automatically" is already set, then try in Vault Tools - Options - Concurrent Development check "Make all files read-only." When the read-only bit is set, that should tell Vault that it needs to be checked out.
Beth Kieler
SourceGear Technical Support

jgrenadier
Posts: 12
Joined: Sat Apr 22, 2006 2:46 pm

Re: Edit of source file not causing checkout in VS2008

Post by jgrenadier » Thu Apr 16, 2009 2:23 pm

I have the settings for Vault and VS2008 as you describe.
There is still a problem and as I originally described, the problem is intermittent.
I often only catch the problem when I Diff the local files to the files in Vault.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Edit of source file not causing checkout in VS2008

Post by Beth » Fri Apr 17, 2009 7:46 am

Could you send an email to support at sourcegear.com (attn: Beth) with a link to this forum thread?

HS: 215743
Beth Kieler
SourceGear Technical Support

Post Reply