Skip to content

Error: Failed to move '*' to the recycle bin. #111111

Closed

Description

  • VSCode Version:
    Version: 1.52.0-insider (user setup)
    Commit: caf01ba
    Date: 2020-11-20T07:41:44.570Z
    Electron: 9.3.3
    Chrome: 83.0.4103.122
    Node.js: 12.14.1
    V8: 8.3.110.13-electron.0
    OS: Windows_NT x64 10.0.19042
  • 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:

  1. Create a file.
  2. Try to delete the file/folder from the Explorer view.

Does this issue occur when all extensions are disabled?: Yes
Screenshot (335)

Activity

  1. gjsjohnmurray commented on Nov 22, 2020

    @gjsjohnmurray
    Contributor

    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?

  2. ShubhamVerma1811 commented on Nov 22, 2020

    @ShubhamVerma1811
    Author

    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.

  3. gjsjohnmurray commented on Nov 22, 2020

    @gjsjohnmurray
    Contributor

    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.

  4. ShubhamVerma1811 commented on Nov 22, 2020

    @ShubhamVerma1811
    Author

    Alright, I'll install the stable version and try on that and post the outcome here.

  5. isidorn commented on Nov 23, 2020

    @isidorn

    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

  6. added
    file-explorer
    info-needed
    on Nov 23, 2020
  7. bpasero commented on Nov 23, 2020

    @bpasero
    Contributor

    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!

  8. ShubhamVerma1811 commented on Nov 23, 2020

    @ShubhamVerma1811
    Author

    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.

    Logs: -1606125897070.log

    Screenshot (341)

  9. bpasero commented on Nov 23, 2020

    @bpasero
    Contributor

    Yeah unfortunately the error is very generic:

    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)
    
  10. ShubhamVerma1811 commented on Nov 23, 2020

    @ShubhamVerma1811
    Author

    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" ?

  11. isidorn commented on Nov 23, 2020

    @isidorn

    I think this is expected behavior and thus we will close this issue as designed.

  12. added
    *as-designed
    on Nov 23, 2020
  13. manuelcanepa commented on Nov 24, 2020

    @manuelcanepa

    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:
      image

    • Press "Delete permanently":
      image

    Holding shift

    • Hold shift + delete:
      image

    • Press "Delete":
      image

    Visual Studio Code (Stable)

    • Pressing delete over a file:
      image

    • Press "Move to recycler bin":
      image

    • Press "Delete permanently"
      Actually delete the file permanently

  14. locked and limited conversation to collaborators on Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*as-designedfile-explorerinfo-needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions