-
Notifications
You must be signed in to change notification settings - Fork 28.6k
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
Cannot test Web Extensions in WSL2 or Dev Containers #201069
Comments
Btw I get the same problem when trying to follow instructions from dev container. |
Maybe there's a problem with your main file? |
I tested that running the hello world web extension works.
|
Note: this only happens with running from WSL or Dev Containers. Doing the same using windows terminal is working fine. |
Also doing the same using VSCode installed directly in WSL (using WSLg) also works. And my current workaround is to run VSCode CLI from WSL distro and use the web UI instead of connecting through |
Ah, sorry, now I understand. You want to run a web extension that is on a remote. Maybe caused by #144513 |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Running a web extension in a remote setup is currently not supported. |
1/ Your statement is only for the development scenario? So if I am developing a web extension + WSL => I cannot test it in VS Code. Or 2/ the statement applies also for the runtime scenario. I.e. I published a web extension. And a user that tries my extension in WSL =>it won't work. |
Only the development scenario. |
Yeah... That's a bummer. I am currently using VSCode through |
At our company we have the same issue and have been using Dev Containers for all our extension projects up until now, so this incompatibility is quite inconvenient. It's also taken me a while to figure out that this is an unsupported debugging scenario since it isn't documented elsewhere. It would be good if a statement could be added to this documentation for example before the feature becomes available. |
Type: Bug
Following instructions from here to start web extension in desktop VSCode from WSL2:
The extension is built fine but it's not shown when running
Developer: Show Running Extension
in[Extension Development Host]
window and trying to runHello World
command fails saying that it is not found (even though command is visible in command palette).Trying both
VS Code desktop
and@vscode/test-web
options yields the same results.Running non-web hello-world extension sample is working as expected though.
I also cannot find any relevant logs.
VS Code version: Code 1.85.1 (0ee08df, 2023-12-13T09:49:37.021Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Remote OS version: Linux x64 5.15.133.1-microsoft-standard-WSL2
Remote OS version: Linux x64 5.15.133.1-microsoft-standard-WSL2
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (18)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: