gitkraken / vscode-gitlens

Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more
http://gitkraken.com/gitlens
Other
9.01k stars 1.34k forks source link

Infinite error loop when pushing stash from GUI #3133

Open RaptorX opened 9 months ago

RaptorX commented 9 months ago

Description

When trying to use the Stash All Changes button from the Source Control tab from GitLens, the tool enters an infinite loop creating stashes due to an error. All of them stash the full file and not the diff.

The only way to stop is to close VSCode and re-open it.

I could not reproduce the problem on a clean repository, and this issue happens with some of my repositories, not all. I do not know where to start troubleshooting.

GitLens Version

14.7.0

VS Code Version

Version: 1.85.2 (system setup) Commit: 8b3775030ed1a69b13e4f4c628c612102e30a681 Date: 2024-01-18T06:40:10.514Z Electron: 25.9.7 ElectronBuildId: 26354273 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.22621

Git Version

git version 2.43.0.windows.1

Logs, Screenshots, Screen Captures, etc

image

I get a lot of stashes like this:

image

image

The output window repeats the following error:

[2024-02-03 21:03:00.418] Push Stash
Error: Command failed: C:\Program Files\Git\cmd\git.exe -c core.longpaths=true -c core.quotepath=false -c color.ui=false stash push --include-untracked --keep-index -m new test --pathspec-from-file=- --pathspec-file-nul --
error: invalid path 's:/Prompt Assistant/Prompt Assistant.ahk'
error: unable to add 's:/Prompt Assistant/Prompt Assistant.ahk' to index
fatal: adding files failed

The file exists and is accessible and not locked as far as I can tell.

Output Log -- Debugging Enabled for GitLens ``` [2024-02-03 21:25:24.445] [ f] GitProviderService.getOrOpenRepository(e=Uri(file:///s:/Prompt Assistant/Prompt Assistant.ahk)) [2024-02-03 21:25:24.446] [ 10] GitProviderService.getRepository(e=Uri(file:///s:/Prompt Assistant/Prompt Assistant.ahk)) [2024-02-03 21:25:24.446] [ 10] GitProviderService.getRepository(e=Uri(file:///s:/Prompt Assistant/Prompt Assistant.ahk)) returned undefined [0ms] [2024-02-03 21:25:24.446] [ f] GitProviderService.getOrOpenRepository(e=Uri(file:///s:/Prompt Assistant/Prompt Assistant.ahk)) returned B(d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant) [0ms] [2024-02-03 21:25:24.449] [ 15] GitProviderService.getRepository(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant) [2024-02-03 21:25:24.449] [ 15] GitProviderService.getRepository(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant) returned B(d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant) [0ms] [2024-02-03 21:25:24.449] [ 16] GitProviderService.getScmRepository(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant) [2024-02-03 21:25:24.449] [ 17] LocalGitProvider.getScmRepository(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant) [2024-02-03 21:25:24.449] [ 17] LocalGitProvider.getScmRepository(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant) returned undefined [0ms] [2024-02-03 21:25:24.449] [ 16] GitProviderService.getScmRepository(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant) completed [0ms] [2024-02-03 21:25:24.451] [ 18] Keyboard.createScope[0]() [2024-02-03 21:25:24.451] [ 18] Keyboard.createScope[0]() completed [0ms] [2024-02-03 21:25:24.451] [ 19] KeyboardScope.resume(paused=true) [2024-02-03 21:25:24.459] [ 19] KeyboardScope.resume(paused=true) completed [8ms][2024-02-03 21:25:31.166] [ 1a] KeyboardScope.pause(paused=false) [2024-02-03 21:25:31.166] [ 1a] KeyboardScope.pause(paused=false) completed [0ms] [2024-02-03 21:25:31.209] [ 1b] KeyboardScope.pause(paused=true) [2024-02-03 21:25:31.210] [ 1b] KeyboardScope.pause(paused=true) completed [0ms] [2024-02-03 21:25:31.249] [ 1c] KeyboardScope.pause(paused=true) [2024-02-03 21:25:31.250] [ 1c] KeyboardScope.pause(paused=true) completed [0ms] [2024-02-03 21:25:31.382] [ 1d] KeyboardScope.pause(paused=true) [2024-02-03 21:25:31.382] [ 1d] KeyboardScope.pause(paused=true) completed [0ms] [2024-02-03 21:25:31.462] [ 1e] KeyboardScope.pause(paused=true) [2024-02-03 21:25:31.463] [ 1e] KeyboardScope.pause(paused=true) completed [0ms][2024-02-03 21:25:32.118] [ 1f] KeyboardScope.pause(paused=true) [2024-02-03 21:25:32.118] [ 1f] KeyboardScope.pause(paused=true) completed [0ms][2024-02-03 21:25:32.302] [ 20] KeyboardScope.pause(paused=true) [2024-02-03 21:25:32.302] [ 20] KeyboardScope.pause(paused=true) completed [0ms][2024-02-03 21:25:34.727] [ 21] KeyboardScope.pause(paused=true) [2024-02-03 21:25:34.727] [ 21] KeyboardScope.pause(paused=true) completed [0ms] [2024-02-03 21:25:34.819] [ 22] KeyboardScope.pause(paused=true) [2024-02-03 21:25:34.819] [ 22] KeyboardScope.pause(paused=true) completed [0ms] [2024-02-03 21:25:34.974] [ 23] KeyboardScope.pause(paused=true) [2024-02-03 21:25:34.974] [ 23] KeyboardScope.pause(paused=true) completed [0ms][2024-02-03 21:25:35.478] [ 24] KeyboardScope.pause(paused=true) [2024-02-03 21:25:35.478] [ 24] KeyboardScope.pause(paused=true) completed [0ms] [2024-02-03 21:25:35.606] [ 25] KeyboardScope.pause(paused=true) [2024-02-03 21:25:35.606] [ 25] KeyboardScope.pause(paused=true) completed [0ms][2024-02-03 21:25:36.150] [ 26] KeyboardScope.pause(paused=true) [2024-02-03 21:25:36.150] [ 26] KeyboardScope.pause(paused=true) completed [0ms] [2024-02-03 21:25:36.209] [ 27] CommitsView.triggerNodeChange(e=CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant)) [2024-02-03 21:25:36.210] [ 27] CommitsView.triggerNodeChange(e=CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant)) completed [0ms] [2024-02-03 21:25:36.210] [ 28] CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant).ensureSubscription [2024-02-03 21:25:36.210] [ 28] CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant).ensureSubscription completed [0ms] [2024-02-03 21:25:36.210] [ 2a] GitProviderService.isRepositoryForEditor(e=file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant) [2024-02-03 21:25:36.210] [ 2b] GitProviderService.getRepository(e=Uri(output:extension-output-eamodio.gitlens-%231-GitLens)) [2024-02-03 21:25:36.210] [ 2b] GitProviderService.getRepository(e=Uri(output:extension-output-eamodio.gitlens-%231-GitLens)) returned undefined [0ms] [2024-02-03 21:25:36.210] [ 2a] GitProviderService.isRepositoryForEditor(e=file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant) returned false [0ms] [2024-02-03 21:25:36.210] [ 2d] GitProviderService.getLastFetchedTimestamp(e=Uri(file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant)) [2024-02-03 21:25:36.210] [ 2e] LocalGitProvider.getLastFetchedTimestamp(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant) [2024-02-03 21:25:36.210] [ 2f] LocalGitProvider.getGitDir(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant) [2024-02-03 21:25:36.210] [ 2f] LocalGitProvider.getGitDir(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant) returned file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/.git, commonUri=undefined [0ms] [2024-02-03 21:25:36.211] [ 30] CommitsView.triggerNodeChange(e=CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64)) [2024-02-03 21:25:36.211] [ 30] CommitsView.triggerNodeChange(e=CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64)) completed [0ms] [2024-02-03 21:25:36.211] [ 31] CommitsView.triggerNodeChange(e=CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/SQLite1)) [2024-02-03 21:25:36.211] [ 31] CommitsView.triggerNodeChange(e=CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/SQLite1)) completed [0ms] [2024-02-03 21:25:36.211] [ 32] CommitsView.triggerNodeChange(e=CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject)) [2024-02-03 21:25:36.211] [ 32] CommitsView.triggerNodeChange(e=CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject)) completed [0ms] [2024-02-03 21:25:36.211] [ 33] CommitsView.triggerNodeChange(e=CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64)) [2024-02-03 21:25:36.211] [ 33] CommitsView.triggerNodeChange(e=CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64)) completed [0ms] [2024-02-03 21:25:36.211] [ 34] CommitsView.triggerNodeChange(e=CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log)) [2024-02-03 21:25:36.211] [ 34] CommitsView.triggerNodeChange(e=CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log)) completed [0ms] [2024-02-03 21:25:36.212] [ 2e] LocalGitProvider.getLastFetchedTimestamp(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant) completed [1ms] [2024-02-03 21:25:36.212] [ 2d] GitProviderService.getLastFetchedTimestamp(e=Uri(file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant)) completed [1ms][2024-02-03 21:25:36.312] [ 35] KeyboardScope.pause(paused=true) [2024-02-03 21:25:36.312] [ 35] KeyboardScope.pause(paused=true) completed [0ms] [2024-02-03 21:25:36.422] [ 36] CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64).ensureSubscription [2024-02-03 21:25:36.422] [ 37] CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/SQLite1).ensureSubscription [2024-02-03 21:25:36.422] [ 38] CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject).ensureSubscription [2024-02-03 21:25:36.422] [ 39] CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64).ensureSubscription [2024-02-03 21:25:36.422] [ 3a] CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log).ensureSubscription [2024-02-03 21:25:36.422] [ 36] CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64).ensureSubscription completed [0ms] [2024-02-03 21:25:36.422] [ 37] CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/SQLite1).ensureSubscription completed [0ms] [2024-02-03 21:25:36.422] [ 38] CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject).ensureSubscription completed [0ms] [2024-02-03 21:25:36.422] [ 39] CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64).ensureSubscription completed [0ms] [2024-02-03 21:25:36.422] [ 3a] CommitsRepositoryNode(gitlens://viewnode/repo-folder/repo/d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log).ensureSubscription completed [0ms] [2024-02-03 21:25:36.422] [ 3c] GitProviderService.isRepositoryForEditor(e=file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64) [2024-02-03 21:25:36.422] [ 3d] GitProviderService.getRepository(e=Uri(output:extension-output-eamodio.gitlens-%231-GitLens)) [2024-02-03 21:25:36.422] [ 3d] GitProviderService.getRepository(e=Uri(output:extension-output-eamodio.gitlens-%231-GitLens)) returned undefined [0ms] [2024-02-03 21:25:36.422] [ 3c] GitProviderService.isRepositoryForEditor(e=file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64) returned false [0ms] [2024-02-03 21:25:36.423] [ 3f] GitProviderService.getLastFetchedTimestamp(e=Uri(file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64)) [2024-02-03 21:25:36.423] [ 40] LocalGitProvider.getLastFetchedTimestamp(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64) [2024-02-03 21:25:36.423] [ 41] LocalGitProvider.getGitDir(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64) [2024-02-03 21:25:36.423] [ 43] GitProviderService.isRepositoryForEditor(e=file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/SQLite1) [2024-02-03 21:25:36.423] [ 44] GitProviderService.getRepository(e=Uri(output:extension-output-eamodio.gitlens-%231-GitLens)) [2024-02-03 21:25:36.423] [ 44] GitProviderService.getRepository(e=Uri(output:extension-output-eamodio.gitlens-%231-GitLens)) returned undefined [0ms] [2024-02-03 21:25:36.423] [ 43] GitProviderService.isRepositoryForEditor(e=file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/SQLite1) returned false [0ms] [2024-02-03 21:25:36.423] [ 46] GitProviderService.getLastFetchedTimestamp(e=Uri(file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/SQLite1)) [2024-02-03 21:25:36.423] [ 47] LocalGitProvider.getLastFetchedTimestamp(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/SQLite1) [2024-02-03 21:25:36.423] [ 48] LocalGitProvider.getGitDir(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/SQLite1) [2024-02-03 21:25:36.423] [ 4a] GitProviderService.getLastFetchedTimestamp(e=Uri(file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject)) [2024-02-03 21:25:36.423] [ 4b] LocalGitProvider.getLastFetchedTimestamp(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject) [2024-02-03 21:25:36.423] [ 4c] LocalGitProvider.getGitDir(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject) [2024-02-03 21:25:36.423] [ 4e] GitProviderService.isRepositoryForEditor(e=file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64) [2024-02-03 21:25:36.424] [ 4f] GitProviderService.getRepository(e=Uri(output:extension-output-eamodio.gitlens-%231-GitLens)) [2024-02-03 21:25:36.424] [ 4f] GitProviderService.getRepository(e=Uri(output:extension-output-eamodio.gitlens-%231-GitLens)) returned undefined [0ms] [2024-02-03 21:25:36.424] [ 4e] GitProviderService.isRepositoryForEditor(e=file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64) returned false [0ms] [2024-02-03 21:25:36.424] [ 51] GitProviderService.getLastFetchedTimestamp(e=Uri(file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64)) [2024-02-03 21:25:36.424] [ 52] LocalGitProvider.getLastFetchedTimestamp(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64) [2024-02-03 21:25:36.424] [ 53] LocalGitProvider.getGitDir(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64) [2024-02-03 21:25:36.424] [ 55] GitProviderService.isRepositoryForEditor(e=file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log) [2024-02-03 21:25:36.424] [ 56] GitProviderService.getRepository(e=Uri(output:extension-output-eamodio.gitlens-%231-GitLens)) [2024-02-03 21:25:36.424] [ 56] GitProviderService.getRepository(e=Uri(output:extension-output-eamodio.gitlens-%231-GitLens)) returned undefined [0ms] [2024-02-03 21:25:36.424] [ 55] GitProviderService.isRepositoryForEditor(e=file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log) returned false [0ms] [2024-02-03 21:25:36.424] [ 58] GitProviderService.getLastFetchedTimestamp(e=Uri(file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log)) [2024-02-03 21:25:36.424] [ 59] LocalGitProvider.getLastFetchedTimestamp(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log) [2024-02-03 21:25:36.424] [ 5a] LocalGitProvider.getGitDir(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log) [2024-02-03 21:25:36.424] [ 41] LocalGitProvider.getGitDir(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64) returned file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/.git/modules/lib/Base64, commonUri=undefined [1ms] [2024-02-03 21:25:36.424] [ 48] LocalGitProvider.getGitDir(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/SQLite1) returned file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/.git/modules/lib/SQLite1, commonUri=undefined [0ms] [2024-02-03 21:25:36.424] [ 4c] LocalGitProvider.getGitDir(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject) returned file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/.git/modules/lib/ScriptObject, commonUri=undefined [0ms] [2024-02-03 21:25:36.424] [ 53] LocalGitProvider.getGitDir(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64) returned file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/.git/modules/lib/HandleFromBase64, commonUri=undefined [0ms] [2024-02-03 21:25:36.424] [ 5a] LocalGitProvider.getGitDir(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log) returned file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/.git/modules/lib/Log, commonUri=undefined [0ms] [2024-02-03 21:25:36.429] [ 40] LocalGitProvider.getLastFetchedTimestamp(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64) completed [6ms] [2024-02-03 21:25:36.429] [ 3f] GitProviderService.getLastFetchedTimestamp(e=Uri(file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64)) completed [6ms] [2024-02-03 21:25:36.429] [ 5b] GitProviderService.getRemotesWithProviders(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64) [2024-02-03 21:25:36.429] [ 5c] GitProviderService.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64, t=undefined, i=undefined) [2024-02-03 21:25:36.429] [ 5d] LocalGitProvider.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64) [2024-02-03 21:25:36.429] [ 5d] LocalGitProvider.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64) completed [0ms] [2024-02-03 21:25:36.429] [ 5c] GitProviderService.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64, t=undefined, i=undefined) completed [0ms] [2024-02-03 21:25:36.429] [ 5b] GitProviderService.getRemotesWithProviders(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Base64) completed [0ms] [2024-02-03 21:25:36.430] [ 47] LocalGitProvider.getLastFetchedTimestamp(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/SQLite1) completed [6ms] [2024-02-03 21:25:36.430] [ 46] GitProviderService.getLastFetchedTimestamp(e=Uri(file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/SQLite1)) completed [6ms] [2024-02-03 21:25:36.430] [ 4b] LocalGitProvider.getLastFetchedTimestamp(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject) completed [7ms] [2024-02-03 21:25:36.430] [ 4a] GitProviderService.getLastFetchedTimestamp(e=Uri(file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject)) completed [7ms] [2024-02-03 21:25:36.431] [ 5e] GitProviderService.getRemotesWithProviders(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject) [2024-02-03 21:25:36.431] [ 5f] GitProviderService.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject, t=undefined, i=undefined) [2024-02-03 21:25:36.431] [ 60] LocalGitProvider.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject) [2024-02-03 21:25:36.431] [ 60] LocalGitProvider.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject) completed [0ms] [2024-02-03 21:25:36.431] [ 5f] GitProviderService.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject, t=undefined, i=undefined) completed [0ms] [2024-02-03 21:25:36.431] [ 5e] GitProviderService.getRemotesWithProviders(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/ScriptObject) completed [0ms] [2024-02-03 21:25:36.431] [ 52] LocalGitProvider.getLastFetchedTimestamp(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64) completed [7ms] [2024-02-03 21:25:36.431] [ 51] GitProviderService.getLastFetchedTimestamp(e=Uri(file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64)) completed [7ms] [2024-02-03 21:25:36.431] [ 61] GitProviderService.getRemotesWithProviders(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64) [2024-02-03 21:25:36.432] [ 62] GitProviderService.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64, t=undefined, i=undefined) [2024-02-03 21:25:36.432] [ 63] LocalGitProvider.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64) [2024-02-03 21:25:36.432] [ 63] LocalGitProvider.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64) completed [0ms] [2024-02-03 21:25:36.432] [ 62] GitProviderService.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64, t=undefined, i=undefined) completed [0ms] [2024-02-03 21:25:36.432] [ 61] GitProviderService.getRemotesWithProviders(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/HandleFromBase64) completed [0ms] [2024-02-03 21:25:36.432] [ 59] LocalGitProvider.getLastFetchedTimestamp(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log) completed [8ms] [2024-02-03 21:25:36.432] [ 58] GitProviderService.getLastFetchedTimestamp(e=Uri(file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log)) completed [8ms] [2024-02-03 21:25:36.432] [ 64] GitProviderService.getRemotesWithProviders(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log) [2024-02-03 21:25:36.432] [ 65] GitProviderService.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log, t=undefined, i=undefined) [2024-02-03 21:25:36.433] [ 66] LocalGitProvider.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log) [2024-02-03 21:25:36.433] [ 66] LocalGitProvider.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log) completed [0ms] [2024-02-03 21:25:36.433] [ 65] GitProviderService.getRemotes(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log, t=undefined, i=undefined) completed [0ms] [2024-02-03 21:25:36.433] [ 64] GitProviderService.getRemotesWithProviders(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant/lib/Log) completed [0ms] [2024-02-03 21:25:36.490] [ 67] KeyboardScope.pause(paused=true) [2024-02-03 21:25:36.491] [ 67] KeyboardScope.pause(paused=true) completed [0ms] [2024-02-03 21:25:36.636] [ 68] KeyboardScope.resume(paused=true) [2024-02-03 21:25:36.636] [ 68] KeyboardScope.resume(paused=true) completed [0ms][2024-02-03 21:25:36.777] [ 69] KeyboardScope.pause(paused=false) [2024-02-03 21:25:36.777] [ 69] KeyboardScope.pause(paused=false) completed [0ms] [2024-02-03 21:25:36.869] [ 6a] KeyboardScope.pause(paused=true) [2024-02-03 21:25:36.870] [ 6a] KeyboardScope.pause(paused=true) completed [0ms] [2024-02-03 21:25:36.943] [ 6b] KeyboardScope.pause(paused=true) [2024-02-03 21:25:36.943] [ 6b] KeyboardScope.pause(paused=true) completed [0ms] [2024-02-03 21:25:37.041] [ 6c] KeyboardScope.pause(paused=true) [2024-02-03 21:25:37.042] [ 6c] KeyboardScope.pause(paused=true) completed [0ms][2024-02-03 21:25:38.257] [ 6d] B(d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant).stashSave(e=test, t=[Uri(file:///s:/Prompt Assistant/Prompt Assistant.ahk)], i={"includeUntracked":false,"keepIndex":true,"onlyStaged":false}) [2024-02-03 21:25:38.257] [ 6e] GitProviderService.stashSave(e=Uri(file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant), t=test, i=1, r={"includeUntracked":false,"keepIndex":true,"onlyStaged":false}) [2024-02-03 21:25:38.257] [ 6f] LocalGitProvider.stashSave(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant, t=test, i=1, r={"includeUntracked":false,"keepIndex":true,"onlyStaged":false}) [2024-02-03 21:25:38.500] [GIT ] [d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant] git stash push --include-untracked --keep-index -m test --pathspec-from-file=- --pathspec-file-nul -- [243ms] [2024-02-03 21:25:38.501] [ 70] LocalGitProvider.resetCache(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant, ...t=stashes, status) completed [0ms] [2024-02-03 21:25:38.501] [ 71] VslsGitProvider.resetCache(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant, ...t=stashes, status) completed [0ms] [2024-02-03 21:25:38.501] [ 72] GitHubGitProvider.resetCache(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant, ...t=stashes, status) completed [0ms] [2024-02-03 21:25:38.502] [ 73] B(d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant).resetCaches(stashes, status) completed [0ms] [2024-02-03 21:25:38.502] [ 6f] LocalGitProvider.stashSave — failed [244ms] Error: Command failed: C:\Program Files\Git\cmd\git.exe -c core.longpaths=true -c core.quotepath=false -c color.ui=false stash push --include-untracked --keep-index -m test --pathspec-from-file=- --pathspec-file-nul -- error: invalid path 's:/Prompt Assistant/Prompt Assistant.ahk' error: unable to add 's:/Prompt Assistant/Prompt Assistant.ahk' to index fatal: adding files failed [2024-02-03 21:25:38.502] [ 6e] GitProviderService.stashSave — failed [245ms] Error: Command failed: C:\Program Files\Git\cmd\git.exe -c core.longpaths=true -c core.quotepath=false -c color.ui=false stash push --include-untracked --keep-index -m test --pathspec-from-file=- --pathspec-file-nul -- error: invalid path 's:/Prompt Assistant/Prompt Assistant.ahk' error: unable to add 's:/Prompt Assistant/Prompt Assistant.ahk' to index fatal: adding files failed [2024-02-03 21:25:38.502] [ 6d] B(d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant).stashSave — failed [245ms] Error: Command failed: C:\Program Files\Git\cmd\git.exe -c core.longpaths=true -c core.quotepath=false -c color.ui=false stash push --include-untracked --keep-index -m test --pathspec-from-file=- --pathspec-file-nul -- error: invalid path 's:/Prompt Assistant/Prompt Assistant.ahk' error: unable to add 's:/Prompt Assistant/Prompt Assistant.ahk' to index fatal: adding files failed [2024-02-03 21:25:38.502] Push Stash Error: Command failed: C:\Program Files\Git\cmd\git.exe -c core.longpaths=true -c core.quotepath=false -c color.ui=false stash push --include-untracked --keep-index -m test --pathspec-from-file=- --pathspec-file-nul -- error: invalid path 's:/Prompt Assistant/Prompt Assistant.ahk' error: unable to add 's:/Prompt Assistant/Prompt Assistant.ahk' to index fatal: adding files failed [2024-02-03 21:25:38.502] ShowMessage(error, 'Unable to stash changes. See output channel for more details.', undefined, null) [2024-02-03 21:25:38.503] [ 74] B(d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant).stashSave(e=test, t=[Uri(file:///s:/Prompt Assistant/Prompt Assistant.ahk)], i={"includeUntracked":false,"keepIndex":true,"onlyStaged":false}) [2024-02-03 21:25:38.503] [ 75] GitProviderService.stashSave(e=Uri(file:///d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant), t=test, i=1, r={"includeUntracked":false,"keepIndex":true,"onlyStaged":false}) [2024-02-03 21:25:38.503] [ 76] LocalGitProvider.stashSave(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant, t=test, i=1, r={"includeUntracked":false,"keepIndex":true,"onlyStaged":false}) [2024-02-03 21:25:38.666] [GIT ] [d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant] git stash push --include-untracked --keep-index -m test --pathspec-from-file=- --pathspec-file-nul -- [163ms] [2024-02-03 21:25:38.666] [ 77] LocalGitProvider.resetCache(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant, ...t=stashes, status) completed [0ms] [2024-02-03 21:25:38.666] [ 78] VslsGitProvider.resetCache(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant, ...t=stashes, status) completed [0ms] [2024-02-03 21:25:38.666] [ 79] GitHubGitProvider.resetCache(e=d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant, ...t=stashes, status) completed [0ms] [2024-02-03 21:25:38.666] [ 7a] B(d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant).resetCaches(stashes, status) completed [0ms] [2024-02-03 21:25:38.666] [ 76] LocalGitProvider.stashSave — failed [163ms] Error: Command failed: C:\Program Files\Git\cmd\git.exe -c core.longpaths=true -c core.quotepath=false -c color.ui=false stash push --include-untracked --keep-index -m test --pathspec-from-file=- --pathspec-file-nul -- error: invalid path 's:/Prompt Assistant/Prompt Assistant.ahk' error: unable to add 's:/Prompt Assistant/Prompt Assistant.ahk' to index fatal: adding files failed [2024-02-03 21:25:38.666] [ 75] GitProviderService.stashSave — failed [163ms] Error: Command failed: C:\Program Files\Git\cmd\git.exe -c core.longpaths=true -c core.quotepath=false -c color.ui=false stash push --include-untracked --keep-index -m test --pathspec-from-file=- --pathspec-file-nul -- error: invalid path 's:/Prompt Assistant/Prompt Assistant.ahk' error: unable to add 's:/Prompt Assistant/Prompt Assistant.ahk' to index fatal: adding files failed [2024-02-03 21:25:38.666] [ 74] B(d:/Cloud/RaptorX/Dropbox/Guests/Scripts to Work On/Prompt Assistant).stashSave — failed [163ms] Error: Command failed: C:\Program Files\Git\cmd\git.exe -c core.longpaths=true -c core.quotepath=false -c color.ui=false stash push --include-untracked --keep-index -m test --pathspec-from-file=- --pathspec-file-nul -- error: invalid path 's:/Prompt Assistant/Prompt Assistant.ahk' error: unable to add 's:/Prompt Assistant/Prompt Assistant.ahk' to index fatal: adding files failed [2024-02-03 21:25:38.666] Push Stash Error: Command failed: C:\Program Files\Git\cmd\git.exe -c core.longpaths=true -c core.quotepath=false -c color.ui=false stash push --include-untracked --keep-index -m test --pathspec-from-file=- --pathspec-file-nul -- error: invalid path 's:/Prompt Assistant/Prompt Assistant.ahk' error: unable to add 's:/Prompt Assistant/Prompt Assistant.ahk' to index fatal: adding files failed ```
tjesposito commented 6 months ago

Following as I started having this issue in the past week. Uninstalled/reinstalled GitLens to no avail, every time I stash I end up with a bazillion duplicate stashes.

GitLens Version

14.9.0

VS Code Version

Version: 1.88.1 Commit: e170252f762678dec6ca2cc69aba1570769a5d39 Date: 2024-04-10T17:43:08.196Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Darwin arm64 23.4.0

Git Version

git version 2.39.2

The built-in source control context menu's "Stash" option works fine, it's just the GitLens select files -> right click -> "Stash changes..." command that goes into an infinite loop until VS is killed.

I don't have anything getting logged to the output panel though when this happens.

RaptorX commented 6 months ago

This issue might be possibly related to #2953, as it happens in the same type of repos that the other bug happens as well.

nwazuo commented 4 months ago

I'm having this issue as well.

VSCode Version Info

Version: 1.90.1 (user setup) Commit: 611f9bfce64f25108829dd295f54a6894e87339d Date: 2024-06-11T21:01:24.262Z Electron: 29.4.0 ElectronBuildId: 9593362 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.19045

Git Version

git version 2.34.1.windows.1

MarkJeronimus commented 1 month ago

This is the third time it happens to me, and I keep falling for it (and keep retrying an apparent no-op)

I think it consistently happens when you try to stash the staged area when a file has staged and local changes on the same line.

Image

Quick remedy: for n in {1..43}; do git stash drop; done

RaptorX commented 3 weeks ago

Quick remedy: for n in {1..43}; do git stash drop; done

Usually it happens to me when i do the first stash so I just use git stash drop and clean everything out, but doing the loop for known stashes is great because you can keep some that you don't want to delete. Great tip.

sergiolms commented 3 weeks ago

Thanks for reporting this. I have not been able to reproduce the error where it creates infinite stashes with the details provided. Could you share a bit more of information with me about the repository state when this happened? Where you on a detached HEAD state? Was this during a rebase? Unmerged branch? What were your exact steps? (if possible) I have also noticed this repository is inside a Dropbox folder. By any chance, could you confirm me this keeps happening even if the repository is outside Dropbox? If there's any other extra information you could provide me to reproduce this I would greatly appreciate it.

Thank you!

RaptorX commented 3 weeks ago

Thanks for reporting this. I have not been able to reproduce the error where it creates infinite stashes with the details provided. Could you share a bit more of information with me about the repository state when this happened? Where you on a detached HEAD state? Was this during a rebase? Unmerged branch? What were your exact steps? (if possible) I have also noticed this repository is inside a Dropbox folder. By any chance, could you confirm me this keeps happening even if the repository is outside Dropbox? If there's any other extra information you could provide me to reproduce this I would greatly appreciate it.

Thank you!

I had commented that it might be related to a different issue in this comment. They seem to happen in the same types of repos.

In #2953 a user was able to identify which types of repos this happens on: link to post here.

While this particular repo is in dropbox, i have had the issue on other repos as well that are not being synced. I did think that it was a dropbox issue but I quickly discarded that theory.

EDIT: Formatting.

eamodio commented 3 weeks ago

We've pushed a change that resolves a possible loop with stashing though we believe it is unrelated to this issue, it would be great if you could try out tomorrow's (v2024.10.19xx) pre-release edition of GitLens and see if it changes anything.

It would also be great if anyone else who can reproduce this could provide logs and details as to what button/command you are using to stash the changes. /cc @tjesposito @nwazuo @MarkJeronimus

@MarkJeronimus In the scenario you suggested, stashing staged changes when a file has the same line changed in both the index and working tree, are you seeing this modal? Can you also provide details as to what button/command you are using to stash the changes? Image

You can switch to the pre-release edition of GitLens, by clicking on the "Switch to Pre-Release version of this extension" from the Extensions view.

image

tjesposito commented 3 weeks ago

Eric and crew, excellent news- I'm no longer getting the stash loop. Hadn't tried since reporting in June (for fear of infini-stashing), so I don't know exactly where the issue resolved. But my current specs are:

GitLens Version

v2024.10.1805 (pre-release)

VS Code Version

Version: 1.94.0 Commit: d78a74bcdfad14d5d3b1b782f87255d802b57511 Date: 2024-10-02T13:08:12.626Z Electron: 30.5.1 ElectronBuildId: 10262041 Chromium: 124.0.6367.243 Node.js: 20.16.0 V8: 12.4.254.20-electron.0 OS: Darwin arm64 24.0.0

Git Version

git version 2.45.0

Thank you for looking into it and getting it resolved somewhere along the line. Note that compared to an earlier comment, in my case I was having problems even with nothing staged (just a plain ol' clear-the-desk before switching branches on our repo)

MarkJeronimus commented 2 weeks ago

I stash with the small "Stash All Changes..." button next to the "Staged changes" fold-out.

  1. Set-up Image
  2. Initiate stash Image
  3. Enter some message
  4. Image Press ESC repeatedly in an attempt to simply abort Image
  5. Kill Codium and re-launch Image