-
Notifications
You must be signed in to change notification settings - Fork 28
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
GitTools for VS2019, Git Changes window not refreshing #27
Comments
What is the VS version and what is the Git Tools version are you using? |
Here is my current configuration:
I was using GitTools 2.0.8 when I first noticed the behavior, but I have just upgraded to 2.1.0. This version seems even worse. Now clicking the refresh button has no effect at all, so I am not seeing anything in the Git Changes list even when there are changes in the working directory. Closing and reopening the solution still seems to fix it temporarily. Undoing the edits to the file makes the diff view clear up, but the file still shows in the list as Modified until I close and reopen the solution again. |
You can try to close/minimized the Git Changes Window and open it again instead of closing/opening the solution. You can also check the file: %USERPROFILE%/Documents/gitscc.config to see if it has DisableAutoRefresh being true. |
It doesn't look like I have a gitscc.config file. Closing and reopening the Git Changes window is a better workaround than closing and reopening the solution. But, it would still be nice if the refresh button worked or even better still if the auto-refresh worked. |
I find out a scenario that might be related to this: there are white spaces changes in the file.
I will make 3.1.1 to show white space as it is in v2017. And will add a checkbox to toggle the white space in the diff view later on. |
Auto refresh is also changed in v2019. It refreshes all the times in v2017. It only refreshes only when the Git Changes window is opened. The refresh button is designed to force refresh no matter how. I am trying to reproduce the scenario when the auto-refresh not starting. |
Thanks. I have upgraded to 3.1.1. I am still seeing the behavior when I do a commit, then click refresh, that it incorrectly shows the files that were just committed, not the dirty files in the working directory. To be clear, the commit clears out the contents of Git Changes, but refresh re-displays the contents of the commit rather than displaying any changes that were made since the commit. The following three screenshots were all taken with the repository and working directory in the same state (and refresh has been clicked). |
I too have the same issue with VS 2019 and gittools 3.1.1 This was fixed by checking the config file gitscc.config as suggested where DisableAutoRefresh was set to true. Changes are now picked up. Thank you. However there is still an issue with the manual refresh (when auto refresh is disabled) as latest changes are not picked up. This seems to be when changes are first made to a file. Also making a change and then reversing it still shows that a commit is required even if the diff view is empty (probably a symptom of the first). Below are my config settings before I changed AutoRefresh
|
An easy way to reproduce the problem (with Solution explorer shows icons next to files and viewing explorer confirms local .git repo created Make any change to program.cs and refresh git changes doesn't track the changes. Closing and re-opening Git changes window makes no difference. Once visual studio is re-opened the program.cs is showing as modified and can be staged/commited. Hope this helps. |
Thanks for sending the repro steps. I will debug it.
…On Sat, Sep 7, 2019 at 9:41 AM Andrew Waters ***@***.***> wrote:
An easy way to reproduce the problem (with true)
New project e.g .net core console app
In solution explorer click on the solution right click add it to source
control (I have git selected in my VS Settings).
Solution explorer shows icons next to files and viewing explorer confirms
local .git repo created
Using Git extensions the initial project files are indeed in the
repository.
Make any change to program.cs and refresh git changes doesn't track the
changes. Closing and re-opening Git changes window makes no difference.
Once visual studio is re-opened the program.cs is showing as modified and
can be staged/commited.
Hope this helps.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#27?email_source=notifications&email_token=AABJUM66UIIFSCMECBE3CVDQIOVSNA5CNFSM4HZQTPV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6EZDGI#issuecomment-529109401>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABJUM3KYJJM4KSSNPNUU6TQIOVSNANCNFSM4HZQTPVQ>
.
|
+1 |
I am having this issue too. |
Issue persists. Visual Studio Enterprise 2019 Preview |
Same issue here: Note that standard "Git Changes" window in VS demonstrate same behaviour. |
FYI this is also present in 16.11.1 Preview 1.0 |
Cannot see Git in menu options or Git changes either. Even after installing git extension |
Apparently this is still/again an issue in Visual Studip 2022 Preview 2.0. |
Working with GitTools in VS 2017 seems to work fine, but for VS 2019 the "Git Changes" window only seems to work until the first commit. Clicking the "Refresh" button after that point shows the files that were recently checked in, not the active changes in the working directory since the commit.
There doesn't seem to be any remedy for this except to close the solution and reopen it, then it will show the correct changes to the working directory until the next commit, then back to the problem again not showing the changes to the working directory until the solution is closed and reopened.
The text was updated successfully, but these errors were encountered: