-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Windows: Investigate writing native library / command line tool for file traversal #11182
Comments
I am seeing the same when opening a folder that is mapped into Windows from the Parallels host (Mac). Since this seems like a more typical use case, I am marking this one as important. |
The Parallels case seems to work for me. I've opened, e.g.: \psf\Home\Development\repos\target |
Ah...both work, I need to investigate the performance. |
@chrmarti shouldn't you be on vacation :)? My suggestion for the windows issues is to go back to the node.js search for this release on Windows only and then revisit in September with a different solution. |
Bummer, dir doesn't perform well with these high latency cases. (Measured on Parallels myself now.) I agree, we should revert. Longer term we might just detect UNC paths and fall back. The bigger problem might be the long paths (#11183) and circular symlinks (#11179), since we can't detect these upfront. Even detecting these from the output of dir might not be trivial, because the only hint is a message about a path being too long on stderr that might get translated (I need to check that though). (12 hours behind you in the middle of the Pacific :) |
@chrmarti I can add a check for windows and use the old node.js approach. From testing it seems there are no such issues on Mac and Linux. I do think that for Windows we should look into writing C#/C++ command line tool to handle this (similar how we do for the Windows file watcher). E.g. leveraging Detecting UNC paths is not enough because you can also map a network drive as a real drive letter, so the path is not telling about the nature of the connection. Again, a native solution might help us identify such circumstances. |
We reverted to use the existing tree traversal in node.js (#11293). Closing bugs due to the use of 'dir' as duplicates of this one. |
Moving this out from the September release due to its scope. |
Using ripgrep now. |
Testing #11035
=> it takes a lot longer compared to our raw node.js solution in 1.4
=> maybe we need to detect UNC cases and avoid using dir command
The text was updated successfully, but these errors were encountered: