Skip to content

deleting large directory freezes vs code #56690

Closed

Description

@graph
  • VSCode Version:
    Version: 1.26.0
    Commit: 4e93618
    Date: 2018-08-13T16:29:31.933Z
    Electron: 2.0.5
    Chrome: 61.0.3163.100
    Node.js: 8.9.3
    V8: 6.1.534.41
    Architecture: x64

Steps to Reproduce:

  1. make a directory with 19K+ files (I tested with one of my build directories)
  2. delete it by doing move to recycle bin

info about what I deleted:

  • 17,812 Files, 1,536 Folders
  • just over 6GB total
  • somewhere in D:/

It finishes eventually but all the UI is frozen. And VS code closed. My project is in D:/ maybe that's a factor I don't know.

I just tested with 1.26.1 and the issue still exists there too. It deleted quicker I guess the harddrive was already warmed up this time but it did freeze for a moment. Deleting needs progress or some form of indicator.

Activity

  1. bpasero commented on Aug 20, 2018

    @bpasero
    Contributor

    Yes, having the entire drive opened in VSCode can result in freezes like this due to the massive amount of file events that are potentially send. The only way out is to configure certain (large) subfolders on this drive to be excluded from watching via the files.watcherExcludes setting.

  2. MicahZoltu commented on Aug 30, 2018

    @MicahZoltu

    I run into this problem all the time when trying to delete my node_modules folder. Often this folder has many files, but is relatively small. As a workaround, is it possible to do a system-wide node_modules watcher exclude that will ignore any directory that is part of a tree that includes nodue_modules?

  3. bpasero commented on Aug 30, 2018

    @bpasero
    Contributor

    Micah Zoltu (@MicahZoltu) there was a recent bugfix in this area, can you try if it still reproduces with our insiders release?

  4. added
    info-needed
    on Sep 5, 2018
  5. graph commented on Sep 24, 2018

    @graph
    Author

    Version: 1.27.2 (system setup)
    Commit: f46c4c4
    Date: 2018-09-12T16:17:45.060Z
    Electron: 2.0.7
    Chrome: 61.0.3163.100
    Node.js: 8.9.3
    V8: 6.1.534.41
    Architecture: x64
    OS: Windows 10

    I just tried to delete a very large directory in vs code and it froze while deleting. Eventually I got vs code not responding dialog. This bug either needs to be reopenned or a new bug report. I don't know what your teams workflow is.

    Thank you.

  6. graph commented on Oct 17, 2018

    @graph
    Author

    Benjamin Pasero (@bpasero) This bug still occurs latest release

    Version: 1.28.1 (system setup)
    Commit: 3368db6
    Date: 2018-10-11T18:13:53.910Z
    Electron: 2.0.9
    Chrome: 61.0.3163.100
    Node.js: 8.9.3
    V8: 6.1.534.41
    Architecture: x64

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

Metadata

Metadata

Labels

file-watcherinfo-needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions