VSCode Extension Problem with WLS2 GUI

Hello together,

i tried to install the Extension in VSCode, but when i try to configure the Torizon Development Environment, the Window from WLS2 is empty. I have no chance to setup.i attached a Screenshot. Maybe someone can help me with this issue.

Thanks.

Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

When encountering issues with the VSCode extension for Torizon not displaying correctly in WSL2, there are a few steps you can take to troubleshoot and potentially resolve the issue:

  1. Ensure WSL2 is Properly Installed and Updated: Verify that WSL2 is installed correctly on your system and that you have the latest updates applied. You can check Microsoft’s official documentation for guidance on installing or updating WSL2.

  2. Check VSCode and Extension Versions: Make sure that your VSCode is up to date. Additionally, ensure that you have the latest version of the Torizon VSCode extension installed. Outdated versions might cause compatibility issues.

  3. Graphics Drivers Compatibility: Since WSL2 GUI applications rely on your system’s graphics drivers, ensure that your graphics drivers are up to date. Outdated or incompatible drivers can lead to rendering issues with GUI applications in WSL2.

  4. WSL2 Configuration: Verify your WSL2 configuration settings. Incorrect configurations can sometimes cause issues with GUI applications. You can review the WSL2 configuration guidelines provided by Microsoft to ensure your setup is correct.

  5. Restart WSL2 Service: Sometimes, simply restarting the WSL2 service can resolve display issues. You can restart WSL2 by running the command wsl --shutdown in your command prompt or PowerShell, and then restarting your WSL2 instance.

  6. Check for Known Issues: Look for any known issues with the Torizon VSCode extension or WSL2 that might be affecting GUI applications. Sometimes, specific bugs or compatibility issues can cause problems, and there might be workarounds or fixes available.

If after following these steps the issue persists, it might be beneficial to check if there are any error messages or logs that could provide more insight into what might be going wrong. Without specific error messages or additional details, it’s challenging to provide a more targeted solution.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

Using Multiple Containers with Torizon OS | Toradex Developer Center.

Hey @0xc3,

Can you let us know which version of windows you are running?

-Eric

Hi @eric.tx,

currently i’am on Windows 11 Pro - 23H2 (Build 22631.3880)

Hey @0xc3,

This looks fairly atypical. I’ll ask if anyone internally has experienced this with Windows 11.
You should still be able to install the extension and preform the setup without the Installation Wizard.

It may be beneficial to try some of the A.I response suggestions, i.e updating VScode and making sure you arn’t maxing out your computers resources.

-Eric

Hi @eric.tx,

I already re-installed all the stuff. But it did not help. I could not use the Extension, because it closes the connection to WSL2 Torizon when i close the GUI Window.

Hi @0xc3 !

I sent you a private question here on Community.

We will be able to proceed with your support afterwards.

Best regards,

Hey @0xc3 ,

I’m sorry to hear that you are having issue, this looks weird, although the window should be “transparent” at the beginning, also it should show the content after some milliseconds.

Could you please report the output from:

wsl --version

The output should have valuable information about the versions and most importantly the WSLg you are using. Let me know.

BR,