-
Notifications
You must be signed in to change notification settings - Fork 315
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
[wsl] missing file events when open on 'mnt/c` #3959
Comments
(Experimental duplicate detection) |
I think this is expected behavior from the explorer. Forwarding to @aeschli for wsl smarts |
Is the file located on /mnt/c? |
The file located is on /mnt/c. It is on WSL2. |
There's a known WSL2 issue that 'File changes made by Windows apps on Windows filesystem don't trigger notifications for Linux apps' : microsoft/WSL#4739 When I create new files in the WSL terminal (integrated or external) I see the file appear in the explorer. |
But when I create new files in the WSL terminal, I can't see the file appear in the explorer. |
When I created the file, I didn't see the new entry. |
I think I found the problem: If I open an external terminal and create a new file in the working directory, do not close the terminal, and then open VSCode, the explorer will work. But if I close this external terminal and restart VSCode, the explorer won’t work. |
Can you give the precise steps? Here is what I understand
|
OK. This is my steps:
|
I can reproduce: when opening on Interesting message: Error:
|
What is the status of this? |
We now use polling when watching the Windows file system mounts. |
According to note in iteration plan for February 2021, this has been addressed for Remote WSL. |
@aeschli In addition. WSL Kernel 5.4.9 lacs of significant security feature related to this issue: |
@ggirard07 No, this doesn't address any remote container issues. Is there an issue against remote containers for this? if not, can you file an issue with steps to reproduce? FYI @chrmarti @PavelSosin-320 Sorry, not sure how your comment is related to this issue. Should this be filed against wsl? |
@aeschli Yes, I already sent feedback on this issue. When I look at the WSL boot log I see |
@aeschli I thought https://github.com/microsoft/vscode-dev-containers repo was only for prebuilt container images available from the container extension, not issues with the extension itself. |
If Linux Kernel doesn't emit FS events or filter Syscalls incorrectly it impossible to predict what comes to the NodeJS as the filesystem events. Docker's RunC and Podman's CRun get FS notifications from the Kernel in the same way. |
@ggirard07 You are correct, https://github.com/microsoft/vscode-remote-release is the issue tracker for all the remote extensions (wsl, containers and ssh). It's just that each extension has a different code base, and different owners. So this bug is against the remote-wsl extension and the fix I made is just for remote-wsl. |
My bug got closed as a dup of this, but this is fixed and the bug I created is still reproing in 1.54 with WSL extension 0.54.0 |
For 1.56 we no longer do polling on /mnt/ with WSL2. We got too many issues raised regarding the bad performance of the polling. The polling setting We currently have no workaround for this but are waiting for WSL to come up with a solution I created #5000 as fresh issue to track the progress on this. |
Issue Type: Bug
The File Explorer in VS Code does not change after creating or deleting a file on WSL. But this doesn’t happen on Windows.
Step to reappearance:
Then you can see that the File Explorer in the VS Code does not display this file.
If you try to create this file again using the File Explorer in VS Code, VS Code will prompt this:
VS Code version: Code 1.48.2 (a0479759d6e9ea56afa657e454193f72aef85bd0, 2020-08-25T10:13:11.295Z)
OS version: Windows_NT x64 10.0.19041
Remote OS version: Linux x64 4.19.104-microsoft-standard
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Extensions (19)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: