question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Application hangs when trying to discard changes

See original GitHub issue

Describe 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

  1. Change a file in any repository
  2. Open the Changes tab
  3. Right click on the applicable file
  4. Click Discard changes in the context menu
  5. 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

github-discard

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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
t3knoidcommented, Feb 22, 2022

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.

1reaction
ivalkenburgcommented, Feb 18, 2022

An option to disable discarding changes to recycle bin all together would be stellar

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found