-
Notifications
You must be signed in to change notification settings - Fork 38
Troubleshooting & FAQ
When encountering an issue with the extension, here are some steps to gather more information.
There are a number of log files generated by the extension and language server. To find these:
- Open the "Output" panel in VS Code
- Select "MATLAB Language Server" from the drop down
- Find the line starting with "matlabls: Log Directory:" at the top of the log
Navigate to the directory specified. This directory should have languageServerLog.txt and matlabLog.txt (if you have connected to MATLAB).
It is helpful to share these logs when opening an issue, as they may help to identify the root cause of the issue.
An issue may be introduced by a new update to the extension, or may be specific to a MATLAB version. Knowing the version (of either the extension or MATLAB) in which an issue is present may help maintainers reproduce and resolve the issue.
To install an older version of the extension:
- Open the "Extensions" panel
- Click the gear icon next to the MATLAB extension
- Select "Install Specific Version..."
- Choose the version number from the menu
Q: The extension repo shows a "server" change after I commit to the language server. What is this? Should I commit it?
A: The language server is included as a Git submodule in the extension. When you update the server, the submodule pointer in the extension changes. It’s good practice to commit this submodule update in the extension so consumers get the intended server version.
A: To manually initialize the submodules, run the following Git command:
git submodule update --init --recursive
A: The version number is updated at the time of release - you should not update the extension version when making a contribution.
That being said, we follow Semantic Versioning, which specifies a MAJOR.MINOR.PATCH version number:
-
MAJORfor incompatible API changes -
MINORfor new (significant) functionality which is backwards compatible -
PATCHfor backwards compatible bug fixes
A: Yes! In the VS Code settings, set the extension’s MATLAB install path (search for "MATLAB.installPath") to the desired MATLAB matlabroot.