Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Dec 2013
    Location
    Amsterdam
    Posts
    32

    Cool While saving text-compare changes: often error message

    Like BC3, BC4 often gives an error when saving changes you manually made during a text compare.

    Saving a second time usually works. Saving a third time virtually always works.

    It looks like a kind of locking issue, where BC does not retry.

    The majority of cases this happens, this is in either these kinds of directories:

    - (D)VCS repository (SVN, HG, GIT)
    - Cloud shared directory (DropBox, Copy.com)

    On my system, I have these tools installed and running virtually all the time:

    - copy.com
    - dropbox
    - TortoiseSVN
    - TortoiseHG
    - TortoiseGIT
    - SourceTree

    --jeroen

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,788

    Default

    Do you have the exact text of the error message? Running with TortoiseSVN and Dropbox is a fairly common configuration here at Scooter.

    BC3/4's Save command would save a copy of the file, then attempt to overwrite the original. It uses a standard Windows save command to help perform this, and it's generally better and safer than the simpler save method (like Notepad's, which writes directly into the original file; if interrupted can cause corruption).

    This this a link to the Copy.com product? https://www1.copy.com/home/

    Is there any overlap between these folders/services? Are your SVN files within/controlled by dropbox at the same time, for example?
    Aaron P Scooter Software

  3. #3
    Join Date
    Dec 2013
    Location
    Amsterdam
    Posts
    32

    Default

    Error message:

    ---------------------------
    Error
    ---------------------------
    Unable to remove the file to be replaced
    ---------------------------
    OK
    ---------------------------

    I saved the file in a directory that is monitored by TortoiseGit, and the Delphi XE5 IDE (didn't have SourceTree running at that moment, and the location is outside the Copy.com monitored directory tree).

  4. #4
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,788

    Default

    If you attempt to Rename the file, do you also get an error? Or move or rename with Explorer?
    Aaron P Scooter Software

  5. #5
    Join Date
    Dec 2013
    Location
    Amsterdam
    Posts
    32

    Default

    Explorer works fine. Didn't try rename yet.

    What also happens that if this error occurs: an orphan .tmp file in that directory appears with the just saved content.

  6. #6
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,788

    Default

    Yes, the orphan .tmp file creation is part of the safer Save method. If we used the same Save method as Notepad, we would write directly into the file. However, if this process is ever interrupted, you would then have a corrupted version. BC3 uses a different (but still provided by Windows) Save function that creates the temporary file first, then overwrites the original. It seems that something is preventing the overwrite step.

    To test Explorer, can you rename the original file after you bump into this error? Then rename the .temp (newer version) into the original file? Does either step throw a new error message?
    Aaron P Scooter Software

  7. #7
    Join Date
    Jul 2014
    Posts
    1

    Default

    I have exactly the same problem. If I can help to fix this problem then please let me know

  8. #8
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    4,677

    Default

    korna,

    Do you always have this problem when you save, or only with specific drives or folders?

    If the problem is specific to a network drive, what operating system is running on the server providing the network drive?

    What antivirus software are you running on your computer?

    Do you have any other software that might be monitoring or otherwise affecting the problem folder such as version control software or cloud syncing software like dropbox?

    What version of Beyond Compare are you running? Select "Help > About Beyond Compare" to display your version.
    Chris K Scooter Software

  9. #9
    Join Date
    Dec 2013
    Posts
    2

    Default While saving text-compare changes: often error message

    Hi Guys,

    I also get the same issue and await a suitable solution.

    A workaround that works for me is that if I continually try saving the file it will eventually saves successfully save the file but this is not ideal.

    Also, this issue has only started to happen recently and the only changes I've made recently is upgraded to version 3.3.8 (build 16340) of BeyondCompare and I'm also using Visual Studio 2013 in conjunction with the file that's being saved.

    Hopefully this additional information may be of value to Scooter in trying to solve this issue.

    Thanks,
    Marty
    Last edited by martygolden; 21-Aug-2014 at 04:36 AM. Reason: clarifying tools used...

  10. #10
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,788

    Default

    Hello,

    The Save method we employ on Windows is a standard, provided function. Some programs save in-place, like Notepad. If this process is interrupted, it results in a corrupted file. Other programs, like BC3/4 or Word, save to a temp file. Only once the save is complete is a Rename used to overwrite the original file. If you are seeing this scenario where a rename is failing, it is good to test to see if you are able to manually Delete the original file, then Rename a .temp file in the same folder to the original file's name in the same test location. You will also want to test saving a .txt file on your user's Desktop/ using BC3/4, to see if this is a colliding background task (potentially antivirus) that is location dependent or independent.

    If you are applying updates, I would suggest updating to the latest BC3.x release (3.3.12), to have all the potential bug fixes and enhancements it provides. All 3.x updates are free for 3.x users.
    Aaron P Scooter Software

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •