mathworks / mathworks/MATLAB-extension-for-vscode

`workspace` command errors in Vscode

Open
#286 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Here’s a clean, ready-to-use GitHub-style bug report for your issue:

**Describe the bug**  
After updating to MATLAB R2025b, running the `workspace` command from either the MATLAB Command Window (in non-desktop mode) or via the VS Code MATLAB extension produces the following error:  
```
Error using workspace (line 33)
No Desktop found. The Desktop must be running to use this command.
```
It appears that the `workspace` command now requires the MATLAB desktop environment, which may have changed or become unavailable in headless or integrated VS Code sessions.

**To Reproduce**  
Steps to reproduce the behavior:  
1. Open MATLAB R2025b (CLI or through VS Code MATLAB extension).  
2. In the Command Window, run:  
   ```matlab
   workspace
   ```  
3. Observe the error message.

**Expected behavior**  
The `workspace` window or variable inspector should open (or an alternative interface should appear), similar to previous MATLAB versions where this worked even in integrated environments.

**Screenshots**  

<img width="777" height="857" alt="Image" src="https://github.com/user-attachments/assets/44d62d8d-85b6-4143-96af-8f4f5b692ff7" />

**Useful Information**  
- **MATLAB Version:** R2025b  
- **OS Version:**  Windows 11
- **VS Code Version:** 1.05
- **VS Code MATLAB Extension:** 1.3.5

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 reproducing workspace in MATLAB R2025b from the MATLAB Command Window in non-desktop mode and through the VS Code MATLAB extension. Check the reported error and the extension's handling of the command; done means the command provides the expected workspace window or an appropriate alternative without the “No Desktop found” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.