Skip to content

workspace command errors in Vscode #286

@ahmelkholy

Description

@ahmelkholy

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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions