mathworks / mathworks/MATLAB-extension-for-vscode
Error and warning detection stops working after a while
Nobody has claimed this yet.
- 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:
- Use Matlab extension in VSCode for an extended period.
- Wait until error detection breaks.
- 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
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
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