mathworks / MATLAB-extension-for-vscode

This extension provides support for editing MATLAB® code in Visual Studio® Code and includes features such as syntax highlighting, code analysis, navigation support, and more.

Home Page:https://marketplace.visualstudio.com/items?itemName=MathWorks.language-matlab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect warnings / errors upon first connecting to MATLAB

goldrik opened this issue · comments

The MATLAB linter correctly identifies info, warnings, and errors for MATLAB files, shown below in this contrived example

Screenshot 2024-01-11 at 12 58 00 PM (2)

However, upon connecting to MATLAB, the warnings get reloaded. They appear to be correct for the first file, but these warnings are identical for the rest of the files (incorrect).

Screenshot 2024-01-11 at 12 58 11 PM 2

Currently, the way to "fix" this bug is by going through and manually saving every file again.

I have seen this error on both Windows and Mac (Apple Silicon).

Visual Studio Code 1.85.1
MATLAB r2023b, r2023a
MATLAB Extension v1.1.5

I have been able to reproduce this on my end. Thanks for reporting!

This is resolved in v1.2.0 (#97)