-
Notifications
You must be signed in to change notification settings - Fork 2.6k
difftool randomly locks file in some weird way #1287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It sounds as if another process still locks those files. Maybe an antivirus? Or maybe Visual Studio? But then, when I edit files in Visual Studio, I can easily modify them outside and Visual Studio will ask me whether I want to reload said files. Maybe this unspecified "other editor" is less nice? |
Which version of DiffMerge? Where can I download the exact same version of Diffmerge as you used? Can you reproduce the same issue maybe with a diff tool that is available in Git for Windows already without requiring me to install yet another software?
Please note that there are tons of versions in between. It would have helped me a lot if you would have pinpointed this down quite a bit more (and it would have helped you, too, as you can see by the time frame of my responses: you would have been helped a lot earlier).
In general, it is a good idea to try non-private git repositories. You never know whether this is an issue with your private repository (in which case the duty lies with you to investigate further), or with Git for Windows in general (in which case you never need to say that this happens on your private repository, but can provide a detailed step-by-step instruction allowing developers with intimate knowledge of Git to dig in much quicker, meaning: giving developers an incentive to start digging in). As it happens, somebody opened a duplicate at #1315 that pinpointed the change to v2.12.1->v2.12.2 (which of itself did not help me identify the issue, sadly) and used WinMerge, for which I happened to have an installer lying around. So I'll just close this ticket in favor of #1315. |
I was not able to find an open issue matching what I'm seeing.
Setup
Git-2.14.1-64-bit.exe
Windows 10 Pro 64-bit [1703]
I have tried different install options (e.g. disabling/enabling file caching), which seems to be not affecting an issue.
Details
After upgrading to 2.14 I'm suffering from random issues while using git difftool configured for using DiffMerge (I suppose it is irrelevant to specific Diff tool, but I have no other tools at hand to check):
The usage scenario:
Result: Could not open this file for writing.
For the moment, I'm unable to figure out in which particular conditions this happens, but it happens not for every modified file. The issue remains reproducible for specific file even after closing other applications and re-installing git. Rolling back to Git-2.9.0 solves the issue for the file, and re-installing Git-2.14.1 reveals issue back.
Currently, I've got this issue while using private git repository, so I cannot share reproducible test case. I don't see anything unusual within file permissions of modified file.
The text was updated successfully, but these errors were encountered: