vscode-gitlens
vscode-gitlens copied to clipboard
Stashing deleted files reports error
Issue Type: Bug
To reproduce:
- Open a git repo
- Delete a file
- Modify another file
- Stage either the deleted file alone, or both files (+ button in Source Control pane)
- Stash the staged changes
Expected:
- Staged change is stashed and restored, no error is reported.
Current behaviour:
- Changes are stashed, but "Unable to stash changes" warning pops up, and the staged changes are not restored. Output channel contains message along the lines of
[2022-07-13 08:15:26.038] Function._handleError
EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, stat '/workspaces/myws/path/to/deleted/file.xxx'
[2022-07-13 08:15:38.971] [GIT ] [/workspaces/myws] git stash push -u --pathspec-from-file=- --pathspec-file-nul • Command failed: /opt/bb/bin/git -c core.quotepath=false -c color.ui=false stash push -u --pathspec-from-file=- --pathspec-file-nul • pathspec ':(,prefix:0)path/to/deleted/file.xxx' did not match any files • 16 ms
[2022-07-13 08:15:38.971] Push Stash
Error: Command failed: /opt/bb/bin/git -c core.quotepath=false -c color.ui=false stash push -u --pathspec-from-file=- --pathspec-file-nul
fatal: pathspec ':(,prefix:0)path/to/deleted/file.xxx' did not match any files
Note: This looks like https://github.com/gitkraken/vscode-gitlens/issues/1806, which was closed as no longer reproduceable. It appears that another file in the workspace must be modified to reproduce the issue - a deleted file alone does seem to stash OK.
Extension version: 12.1.2 VS Code version: Code 1.69.1 (b06ae3b2d2dbfe28bca3134cc6be65935cdfea6a, 2022-07-12T08:21:24.514Z) OS version: Windows_NT x64 10.0.19043 Restricted Mode: No Remote OS version: Linux x64 5.10.102.1-microsoft-standard-WSL2
System Info
Item | Value |
---|---|
CPUs | 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 2995) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 31.71GB (16.82GB free) |
Process Argv | |
Screen Reader | no |
VM | 0% |
Item | Value |
---|---|
Remote | Dev Container: qfdportal-dev |
OS | Linux x64 5.10.102.1-microsoft-standard-WSL2 |
CPUs | 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 2995) |
Memory (System) | 19.54GB (17.41GB free) |
VM | 0% |