I suggest you ...

Fix 'Failed to save open documents before committing' error

I would have submitted this to the issue tracker or mailing list, but both were so user-unfriendly that I thought I'd do it here.

The issue (present in 2.1.10129.17) seems to be that, when no documents are open in VS, committing changes results in an error dialog saying "Failed to save open documents before committing." I finally figured out a workaround - open a document before trying to commit.

9 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    PatPat shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    10 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Anonymous commented  ·   ·  Flag as inappropriate

        Restarting visual studio fixed it. Just closing and reopening the solution doesn't work. You have to exit the VS and open a new one.

      • Anonymous commented  ·   ·  Flag as inappropriate

        I also got this error.

        A couple of forms where deleted, and new forms created with the same name. So I had some files in "new over deleted" state. Maybe that has something to do with the issue ?
        At the time the error appeared, no files where open. Opening a file didn't help.

        Restarting VS did the trick.

      • rhuijbenAdminrhuijben (Bert Huijben, AnkhSVN & SharpSvn Projects) commented  ·   ·  Flag as inappropriate

        Any idea which kind of documents were open within reach of the commit?

        We just ask Visual Studio to perform a Save operation on the documents that are open within the commit. This message is the result of a document that says it can't be saved.

        So whatever we would commit here might not be what you expect, as the document reports that it has in-memory changes that can't be saved.

      Feedback and Knowledge Base