mathworks / mathworks/MATLAB-extension-for-vscode

Error and warning detection stops working after a while

Open
#204 12 comments 0 reactions 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

Describe the bug
After using VSCode for a while (usually 30 minutes+), syntax highlighting error and warning detection stops working (i.e. I get false positives and generic errors). The only way to remedy this issue is to "disconnect" from Matlab and then connect again. It seems that the instance tied to syntax formatting error and warning detection hangs or becomes unresponsive for some reason. Instances of Matlab remain open even after disconnecting, requiring force quitting the old instances.

To Reproduce
Steps to reproduce the behavior:

  1. Use Matlab extension in VSCode for an extended period.
  2. Wait until error detection breaks.
  3. Disconnect and reconnect from Matlab to "fix" issue.

Expected behavior
I would expect error and warning detection to work flawlessly and not to require constantly needing to disconnect and connect to new instances of Matlab.

Useful Information

  • MATLAB version: R2024b Update 3 (24.2.0.2803551)
  • OS Version: macOS 15.2 (24C101)
  • VS Code Version: Version: 1.96.3

Additional context
This has been an issue for as long as I have used this extension. It happens even when using the ssh plugin to run the extension on a remote Linux server. It doesn't seem to be an issue with VSCode's version and it doesn't seem to be unique to macOS, though I guess that it could be a problem with the macOS VSCode client itself. I should also add that I am using the "New Desktop" addon in Matlab locally but not on the Linux machine.

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

No source file, test, or entry point is named in the issue. Start by reproducing the failure with the listed MATLAB, macOS, and VS Code versions, then trace the extension's error and warning detection through disconnect and reconnect. Done means detection remains responsive during extended use without requiring reconnection or leaving MATLAB instances running.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, 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.