mathworks / mathworks/MATLAB-extension-for-vscode
Allow using software opengl in wsl2/linux
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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