-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Can't view image files from Remote-WSL, nor via /mnt/c.., but can via Open > Show Local #116059
Comments
It seems to work for my on my machine. Does your machine have a proxy configured? |
I've pasted the WSL-Remote log below. Yesterday I restarted VS Code to get the clean fresh WSL-Remote for this post. I didn't post the log because the problem went away, all day. This morning I restarted VS Code and the problem returns. I've tried restarting VS code several times this morning and the problem persists. No proxy server configured. Windows was set to automatically detect a proxy server. I've turned off the automatic detection to be sure. Here is the log: [2021-02-10 09:46:13.303] Resolving wsl+Ubuntu-20.04, resolveAttempt: 1 Thank you for your help with this. Let me know if there's anything more I can do to track down the problem. |
More info: I rebooted and restarted a couple of times this afternoon and at this moment I am able to view WSL2-Remote image files. The final 8 lines of the WSL-Remote log (especially the WSL resolver response) do look rather different to the one I posted this morning. Is it some ipv4 vs ipv6 issue? Here is the current log, in which I can view images: [2021-02-10 14:08:19.593] Resolving wsl+Ubuntu-20.04, resolveAttempt: 1 |
The change of behavior were caused by new versions of the Remote-WSL extension. There are two ways of how to connect to the server running in the WSL distro: To reproduce the issue, there's a setting in the wsl extension However, on my machine I see the image either way, localhost or IP. @mjbvz You wrote the image viewer. Any tips how we can debug this further? |
Does this reproduce in the latest VS Code insiders build? This seems like a potential duplicate of #105536 |
Issue Type: Bug
File > Open File > Show Local > choose JPG file > Image displays successfuly
File > Open File > choose same image via /mnt/c/Users .... > "An error occurred while loading the image"
In terminal, cp < path to file via /mnt/c/...filename.jpg > .
In Vscode explorer, click on the file I just copied, then "An error occurred while loading the image"
I get this error on all image files via Remote-WSL2, almost always. Very occasionally I can open an image file via Remote-WSL2 and view it, but then later I get the error message when trying to view the same file.
VS Code version: Code 1.53.0 (8490d3d, 2021-02-03T20:36:38.611Z)
OS version: Windows_NT x64 10.0.19041
Remote OS version: Linux x64 4.19.104-microsoft-standard
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (4)
A/B Experiments
The text was updated successfully, but these errors were encountered: