Application hangs when trying to discard changes
See original GitHub issueDescribe the bug
When trying to discard changes, the application becomes unresponsive.
Version & OS
2.9.7 (x64) Windows 10 21H2 (19044.1526)
Steps to reproduce the behavior
- Change a file in any repository
- Open the Changes tab
- Right click on the applicable file
- Click Discard changes in the context menu
- Click Discard changes in the confirmation dialog
Expected behavior
- The changes are discarded
Actual behavior
- A spinner icon appears in the dialog title bar
- The whole application becomes unresponsive
- Nothing happens when clicking Discard changes or Cancel
- The changes are not discarded
Screenshots
Logs
Not much relevant content in the logs. This is the only line written:
2022-02-15T11:32:53.506Z - info: [ui] No submodules found. Skipping "git submodule status"
Additional context
- I have waited about 10 minutes for the operation to finish
- The only solution is to terminate the application from Task Manager
- I have checked that there are no other processes using the file
- I have tried to discard multiple file types (.js, .html, .json)
- I have tried multiple repositories. All repositories are non-GitHub.
- I have tried deleting %AppData%\GitHub Desktop to start “fresh”
- Downgrading to 2.9.6 fixes the problem
- Not directly related, but the application seems slower to start in 2.9.7
I was unsure whether I should open a new issue or comment on #13433 or #13661, but those appear closed by #13436.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:15 (6 by maintainers)
Top Results From Across the Web
I can't discard changes to see the current version of the file
1) Open Word, Excel or PowerPoint. 2) Click on Options. 3) Click on Save. 4) Click on Delete cached files.
Read more >Undo pending changes with TFS causes freeze
Whenever I try to undo pending changes, Visual Studio freezes. Task Manager doesn't show it as unresponsive, but I have to shut VS...
Read more >DbContext discard changes without disposing - Stack Overflow
I can't test at the moment but, perhaps you could try calling ChangeTracker.Entries() before disabling tracking. · It crashes... · With all the...
Read more >Solved: "there are pending changes in your queries" won't
Click “Discard changes” on the yellow warning bar, and take note of which tables its identifying as stale; In the Power Query Editor,...
Read more >Discard Changes | SAP Help Portal
Move your mouse over the file containing the changes you want to discard and click Discard Changes. Note. Only unstaged files can be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My Recycle bin is also set to not set delete items immediately. Plus as I mentioned, my local repo is on a network NAS share in which deletes don’t normally go into the recycle bin. And yes, this was all working before upgrade.
An option to disable discarding changes to recycle bin all together would be stellar