-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
VS Code freezes when removing 'node_modules' folder from external terminal, forcing to close #20480
Comments
This may be related to #12042. |
Hi @michaeljota , Yes i know the two issues might be related (i mentioned it in my post) |
Oh! Sorry. Did not read that part. :P. But, as far as I can tell: No. 😢 |
@tinesoft can you share the full workspace with me? At least the |
Hi @bpasero , It appears on any node-based project really... |
@tinesoft thanks, will try. |
@tinesoft can you share more details about your machine? Is this a VM? CPU, memory, etc? |
Yep, It's an Alienware X51(R2) Desktop with : |
@tinesoft I tried to reproduce and failed. Here is what I did on Windows 10:
=> I could not get the freeze to reproduce Some things to try:
And yes, sounds very much like a duplicate of #12042 |
Hi @bpasero , Thanks for taking the time to look into this. You mentioned in your post that you deleted the
and in both cases, the freezing problem would appear... |
@tinesoft ok, shouldn't make a bit difference though. Can you try what I suggested (insiders, no extensions, my steps) to see if it reproduces? |
@bpasero Ok i'll try that tonight (i don't have access to my machine right now) 2 questions through:
|
@tinesoft yes, side by side install is possible! On Windows by default changes to I just verified I still do not see any freeze using Code stable 1.9.1 and deleting the I wonder if this is just a matter of your disk being slower than mine and the resulting file events are more "spammy" compared to on my machine. It is easy to find this out by running " Here is my output: https://gist.githubusercontent.com/bpasero/ee240c33ba7d6cda6f5eab9cd25e34c1/raw/a581a0a01a0c9a0f740c619f4e36f172ebddcc8b/gistfile1.txt What is interesting to look at is how often However, due to this timeout being short, on slower disks it can well be that we end up running into a case where we spam the main side with 1 event for each delete, simply because the delete runs slow. |
Hi @bpasero , Again, thanks for taking the time to perform those tests. Cheers! |
Worth mentioning that I just tried with a version of the file watcher that spams each and every event to the main side and I could reproduce a lag when scrolling. However, eventually this recovered and I could continue to use Code normally. |
Hi @bpasero , I did the tests (on regular vscode with So the full command was actually: Test 1: Test 2: |
Ok that is a different story then and I would argue #12042 I suggest we continue talking in there and close this as duplicate. |
Steps to Reproduce:
node_modules
folder) from root foldernode_modules
folder with (rm -rf node_modules
orrmdir /s /q node_modules
)From there, the only working option is to choose
Close
VS Code, when the "not responding" window pops up.Note that disabling "file watching" on
node_modules
in settings (as suggested by #12042) DOES work (the application no longer hangs on deletion, but we loose automatic assistance of newly installed packages).But is there not a better solution?
Thanks in advance
The text was updated successfully, but these errors were encountered: