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.
https://marketplace.visualstudio.com/items?itemName=MathWorks.language-matlab
MIT License
234 stars 15 forks source link

This extension keeps crashing and showing "MATLAB has been closed. Some functionality might be unavailable. #74

Closed kimtaeyo closed 11 months ago

kimtaeyo commented 11 months ago

Describe the bug Simply install this extension and open any MATLAB file, then it shows the following. Unofficial version of Xavier has never had any issue like this.

Screenshots image

Configuration

image

Useful Information

dklilley commented 11 months ago

Thanks for reaching out about this! Here are a few things to try:

  1. Does MATLAB launch normally on your machine?
  2. Does running the matlabroot command in MATLAB return the same value that you have in the VS Code installPath setting? It looks like you currently have it set to C:\MATLAB\R2023b which is a non-standard install location, so I wanted to check.
  3. Can you share any log files from the extension? The file location for these log files should be printed to the "MATLAB Language Server" log in the Output tab (Ctrl+Shift+U) in VS Code.
kimtaeyo commented 11 months ago
  1. Yes.
  2. Yes.
  3. Log has been attached. matlabls_21140.zip
dklilley commented 11 months ago

Do you have a startup.m script? If so, can you share the contents or give a general description of what it is doing?

kimtaeyo commented 11 months ago

I don't have any user-defined startup script for MATLAB R2023b.

dklilley commented 11 months ago

We would like to look into this further. Can you reach out to support@mathworks.com and reference this issue? This will allow us to investigate further and avoid sharing more sensitive log files over GitHub.

kimtaeyo commented 11 months ago

Thanks but I don't want to spend too much time to file here and there. Also, I'm okay with using nonofficial extension from Xavier as of now since it has no issue at all. Hope you guys fix the issue soon.

jecs commented 7 months ago

I am having this issue on macOS Sonoma, @dklilley.

Install Path is the output of matlabroot. I have no custom startup.m. Version 2023b. I see that vscode is opening instances of Matlab on Activity Monitor, but these never "register" with vscode. Would it be OK to reopen this issue or should I open a new one?

kimtaeyo commented 7 months ago

I have used Matlab unofficial extension and there is zero issue so far for windows/mac.

dklilley commented 7 months ago

@jecs , can you please open a new issue and include a description of the behavior as well as the logs from the language server? The path to the log directory should be logged to the Output panel in VS Code.