mathworks / mathworks/MATLAB-extension-for-vscode

Allow using software opengl in wsl2/linux

Open
#310 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
435
Forks
40
PR merge metrics
No merged PRs in 30d

Description

issue
When using the matlab vscode extension in wsl2 I'm facing issues with graphics when trying to open the desktop due to the Windows d3d12 being used. After intermediate loss of the monitors there is a segmentation fault, which is a known issue but not really of relevance here. I have tried matlab 2023b so far.

Solution suggestion
If I open matlab from the wsl2 command line, I can either use the -softwareopengl option or set the env variable LIBGL_ALWAYS_SOFTWARE. In either case I can use matlab quite normally.

That's why it would be nice if things like that were possible in order to add more flexibility on how Matlab is started by the extension.

I have tried setting the env variable in the vscode terminal before connecting Matlab with the extension, didn't help.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the VS Code extension starts or connects to MATLAB in WSL2, then inspect how launch options and environment variables are handled. Done means users can configure software OpenGL through the extension and start MATLAB without the reported graphics failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab, typescript, vscode
Domain
desktop, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.