You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: Failed to move '*' to the recycle bin. #111111
OS Version:
Edition Windows 10 Home Single Language
Version 20H2
Installed on 02-Jun-20
OS build 19042.630
Experience Windows Feature Experience Pack 120.2212.31.0
Steps to Reproduce:
Create a file.
Try to delete the file/folder from the Explorer view.
Does this issue occur when all extensions are disabled?: Yes
As soon as you have dismissed that error message, I suggest you try to delete the same folder+file using Windows Explorer. What happens? Do they go to Recycle Bin? Or does Windows give you a failure message?
It gets deleted using Windows Explorer and I have turned off the option for deleted files to go to the bin but yeah it works.
Even the bash command (rm/rm -rf) works using vscode's built-in terminal.
I tried this with VS Code insiders on Win and macOS and could not reproduce this.
Let's leave this open if more users hit this and you can let us know if you also see this in stable
Please see if you can find any logged output that could help us find the source of the issue:
* run `code --verbose` from the command line and attach the output
* in Code select **Help | Toggle Developer Tools** and select the **Console**
* attach any output you see in the **Console** you can find
Thanks!
I am not sure how to save logs but here is what I could get.
ERR Unknown (FileSystemError): Error: Failed to move 'demo.txt' to the recycle bin
at Object.h [as createFileSystemProviderError] (file:///C:/Users/Shubham/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1741:87)
I think I found the issue right now.
So I have disabled the recycle bin for D: drive.
Which means deleted files are deleted forever. When bin is disabled this error comes on deleting files/folder.
When bin is enabled for D: drive everything works.
I have the same issue. I cant enable recycler bind because the drive where i work is not a windows drive. I have a drive connected through sshfs, i can delete files from windows explorer, but cant do on vscode (Insiders). I think is not "as-designed" because there is no way to delete files from files explorer on vscode.
Visual Studio Code Insiders
Normal delete
Pressing delete over a file:
Press "Delete permanently":
Holding shift
Hold shift + delete:
Press "Delete":
Visual Studio Code (Stable)
Pressing delete over a file:
Press "Move to recycler bin":
Press "Delete permanently"
Actually delete the file permanently
Activity
gjsjohnmurray commentedon Nov 22, 2020
As soon as you have dismissed that error message, I suggest you try to delete the same folder+file using Windows Explorer. What happens? Do they go to Recycle Bin? Or does Windows give you a failure message?
ShubhamVerma1811 commentedon Nov 22, 2020
It gets deleted using Windows Explorer and I have turned off the option for deleted files to go to the bin but yeah it works.
Even the bash command (rm/rm -rf) works using vscode's built-in terminal.
gjsjohnmurray commentedon Nov 22, 2020
Thanks for the responses. I see that you are using Insiders. If you also have Stable installed (they coexist happily) please also test from there.
This information may be useful to the team member who picks up the issue. That might not happen until Monday.
ShubhamVerma1811 commentedon Nov 22, 2020
Alright, I'll install the stable version and try on that and post the outcome here.
isidorn commentedon Nov 23, 2020
I tried this with VS Code insiders on Win and macOS and could not reproduce this.
Let's leave this open if more users hit this and you can let us know if you also see this in stable
fyi Benjamin Pasero (@bpasero) for potential duplicates which I am unware of
bpasero commentedon Nov 23, 2020
Please see if you can find any logged output that could help us find the source of the issue:
code --verbosefrom the command line and attach the outputThanks!
ShubhamVerma1811 commentedon Nov 23, 2020
I am not sure how to save logs but here is what I could get.
Logs: -1606125897070.log
bpasero commentedon Nov 23, 2020
Yeah unfortunately the error is very generic:
ShubhamVerma1811 commentedon Nov 23, 2020
I think I found the issue right now.
So I have disabled the recycle bin for D: drive.
Which means deleted files are deleted forever. When bin is disabled this error comes on deleting files/folder.
When bin is enabled for D: drive everything works.
So should I modify the "Steps to reproduce" ?
isidorn commentedon Nov 23, 2020
I think this is expected behavior and thus we will close this issue as designed.
manuelcanepa commentedon Nov 24, 2020
I have the same issue. I cant enable recycler bind because the drive where i work is not a windows drive. I have a drive connected through sshfs, i can delete files from windows explorer, but cant do on vscode (Insiders). I think is not "as-designed" because there is no way to delete files from files explorer on vscode.
Visual Studio Code Insiders
Normal delete
Pressing delete over a file:

Press "Delete permanently":

Holding shift
Hold shift + delete:

Press "Delete":

Visual Studio Code (Stable)
Pressing delete over a file:

Press "Move to recycler bin":

Press "Delete permanently"
Actually delete the file permanently