Skip to content
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

Next diff against local git repo takes long time to load #51

Open
duyang76 opened this issue May 13, 2020 · 4 comments
Open

Next diff against local git repo takes long time to load #51

duyang76 opened this issue May 13, 2020 · 4 comments

Comments

@duyang76
Copy link

When I diff a set of files against local git repo, sometimes the next diff takes a long time to load. Within the same set of files, some diffs show up in a few seconds, others take 1-2 minutes.

I am using external tool (Beyond Compare). I tried to change the settings (1 or 2 files at a time), stage or commit the changes, but the problem still exist. Any hint on what could cause the issue?

@deadlydog
Copy link
Owner

Thanks for reporting this, and sorry for not responding sooner (it seems I missed the email notification). Does it happen with TFVC repos, or Git repos, or both? Also, is it very consistent? Like, you see the problem 50% of the time? Or you only notice it maybe 5% of the time?

I haven't noticed this myself. It may be related to Beyond Compare taking a while to load, but I can't say for sure. It could also be something like a virus scanner temporary blocking it. I'll keep an eye out for it, but any more info you could provide would be helpful.

@duyang76
Copy link
Author

Sorry about the late reply. Hope you are doing well.

My setting: remote git repo (bitbucket) and local git repo (cloned from remote in VS), and VS is configured to use Beyond Compare. I have some staged changes and some unstaged.

I tried to diff "staged", but the diff took very long time to open. When it opened, I got the error "Unexpected Error Occurred: Attempted to divide by zero." in VS. Diff the files one by one (w/o using "Diff All Files") works fine.

Thanks for looking into it.

@duyang76
Copy link
Author

Is there any log I can check to get more hint on what could cause the issue?

@deadlydog
Copy link
Owner

Not that I know of. That would be a good enhancement to make though; see if we can log to somewhere in Visual Studio (like the Output window perhaps?) and add some logging into the code to help troubleshoot issues like this easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants