Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stashing deleted files reports error #2083

Closed
rjra100 opened this issue Jul 13, 2022 · 1 comment · Fixed by #2540
Closed

Stashing deleted files reports error #2083

rjra100 opened this issue Jul 13, 2022 · 1 comment · Fixed by #2540
Assignees
Milestone

Comments

@rjra100
Copy link

rjra100 commented Jul 13, 2022

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 #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%
@eamodio eamodio self-assigned this Aug 1, 2022
@eamodio eamodio added potential-bug triage Needs to be looked at labels Aug 1, 2022
@eamodio eamodio added this to the 12.2 milestone Aug 1, 2022
@eamodio eamodio modified the milestones: 12.2, Soon™ Aug 29, 2022
@d13 d13 closed this as completed in #2540 Mar 9, 2023
@d13 d13 added pending-release Resolved but not yet released to the stable edition and removed potential-bug triage Needs to be looked at labels Mar 9, 2023
@d13 d13 modified the milestones: Soon™, 13.3-patch Mar 9, 2023
@eamodio eamodio removed the pending-release Resolved but not yet released to the stable edition label Mar 16, 2023
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants