vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Hang in git commit using source control panel

Open RoyLeviLangware opened this issue 11 months ago • 0 comments

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: Version: 1.96.3 (Universal) Commit: 91fbdddc47bc9c09064bf7acf133d22631cbf083 Date: 2025-01-09T18:14:09.060Z (5 days ago) Electron: 32.2.6 ElectronBuildId: 10629634 Chromium: 128.0.6613.186 Node.js: 20.18.1 V8: 12.8.374.38-electron.0 OS: Darwin arm64 24.1.0
  • OS Version: MacOS 15.1.1 (24B91)

Steps to Reproduce:

  1. Git commit using source control panel
  2. It's not a consistent issue. Happens around 5% of times.

My git logs, not the blocking commit not finishing:

"revision":"7ecd42adf590a54642f470621baa76e89ab55af8","icon":{"id":"target"}}
2025-01-15 10:28:20.660 [trace] [GitHistoryProvider][onDidRunWriteOperation] currentHistoryItemRemoteRef: {"id":"refs/remotes/origin/FLOWPAD-487-new-chat","name":"origin/FLOWPAD-487-new-chat","revision":"7ecd42adf590a54642f470621baa76e89ab55af8","icon":{"id":"cloud"}}
2025-01-15 10:28:20.660 [trace] [GitHistoryProvider][onDidRunWriteOperation] currentHistoryItemBaseRef: {"id":"refs/remotes/origin/main","name":"origin/main","revision":"4f9af74c44eebf9c9a5e1902f818ca9a31052a2c","icon":{"id":"cloud"}}
2025-01-15 10:28:20.660 [trace] [GitHistoryProvider][onDidRunWriteOperation] historyItemRefs: {"added":[],"modified":[],"removed":[],"silent":false}
2025-01-15 10:28:24.394 [trace] [OperationManager][start] Commit (blocking: true, readOnly: false; retry: false; showProgress: true)
2025-01-15 10:28:24.394 [trace] [ActionButton][setState] {"HEAD":{"type":0,"name":"FLOWPAD-487-new-chat","upstream":{"name":"FLOWPAD-487-new-chat","remote":"origin","commit":"7ecd42adf590a54642f470621baa76e89ab55af8"},"commit":"7ecd42adf590a54642f470621baa76e89ab55af8","ahead":0,"behind":0},"isCheckoutInProgress":false,"isCommitInProgress":true,"isMergeInProgress":false,"isRebaseInProgress":false,"isSyncInProgress":false,"repositoryHasChangesToCommit":true}
2025-01-15 10:28:24.394 [trace] [ActionButton][getButton] {"command":"git.commit","title":"$(check) Commit","enabled":false}
2025-01-15 10:28:24.402 [trace] [ActionButton][getButton] {"command":"git.commit","title":"$(check) Commit","enabled":false}
2025-01-15 10:28:27.460 [trace] [Model][onDidChangeVisibleTextEditors] Repository for editor resource /Users/roylevi/projects/FlowPad/.git/COMMIT_EDITMSG already exists: /Users/roylevi/projects/FlowPad
2025-01-15 10:28:27.474 [trace] [Repository][onFileChange] Skip running git status because an operation is running.
2025-01-15 10:28:27.474 [debug] [FileEventLogger][onDotGitFileChange] /Users/roylevi/projects/FlowPad/.git/COMMIT_EDITMSG
2025-01-15 10:28:27.660 [trace] [OperationManager][start] Show (blocking: false, readOnly: true; retry: false; showProgress: false)
2025-01-15 10:28:27.660 [trace] [OperationManager][start] GetObjectDetails (blocking: false, readOnly: true; retry: false; showProgress: false)
2025-01-15 10:28:27.680 [info] > git ls-files --stage -- /Users/roylevi/projects/FlowPad/.git/COMMIT_EDITMSG [20ms]
2025-01-15 10:28:27.680 [trace] [OperationManager][end] GetObjectDetails (blocking: false, readOnly: true; retry: false; showProgress: false)
2025-01-15 10:28:27.680 [info] > git show --textconv :.git/COMMIT_EDITMSG [20ms]
2025-01-15 10:28:27.680 [trace] [OperationManager][end] Show (blocking: false, readOnly: true; retry: false; showProgress: false)
2025-01-15 10:28:27.982 [trace] [OperationManager][start] CheckIgnore (blocking: false, readOnly: true; retry: false; showProgress: false)
2025-01-15 10:28:28.001 [info] > git check-ignore -v -z --stdin [19ms]
2025-01-15 10:28:28.001 [trace] [OperationManager][end] CheckIgnore (blocking: false, readOnly: true; retry: false; showProgress: false)
2025-01-15 10:28:28.580 [trace] [OperationManager][start] GetObjectDetails (blocking: false, readOnly: true; retry: false; showProgress: false)
2025-01-15 10:28:28.597 [info] > git ls-files --stage -- /Users/roylevi/projects/FlowPad/.git/COMMIT_EDITMSG [17ms]
2025-01-15 10:28:28.597 [trace] [OperationManager][end] GetObjectDetails (blocking: false, readOnly: true; retry: false; showProgress: false)
2025-01-15 10:28:28.598 [trace] [OperationManager][start] Show (blocking: false, readOnly: true; retry: false; showProgress: false)
2025-01-15 10:28:28.611 [info] > git show --textconv :.git/COMMIT_EDITMSG [13ms]
2025-01-15 10:28:28.611 [trace] [OperationManager][end] Show (blocking: false, readOnly: true; retry: false; showProgress: false)

Source Panel stuck with showProgress: true.

Doesn't hang when I run git commit -m "blah blah" in the terminal.

Source panel: Image

After running Developer: Reload Window the files are not committed, but showProgress is false, so I ran in terminal: git commit -m "blah blah" and it ran in 9 seconds as expected:

Image

RoyLeviLangware avatar Jan 15 '25 08:01 RoyLeviLangware