Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MATLAB was unable to start #164

Open
sbom641 opened this issue Jul 23, 2024 · 14 comments
Open

MATLAB was unable to start #164

sbom641 opened this issue Jul 23, 2024 · 14 comments
Labels
bug Something isn't working

Comments

@sbom641
Copy link

sbom641 commented Jul 23, 2024

I am unable to run any MATLAB files in VScode with the MATALB extension for VScode. The error I get seems to suggest it is an error due to erroneous MATLAB PATH, but I have double-triple checked the path.

VS code - 1.91.1
MATLAB - 2023b
Matlab Extension for VS Code - v1.2.4
Windows - 11Pro 23H2

image

image

This is the only error message I keep getting:
image
(I do not get/see any errros outputed to the OUTPUT tab in VS Code)

Edit 1: Running matlab from the system command window succesfully does launch Matlab

Any help is appreciated.

@sbom641 sbom641 added the bug Something isn't working label Jul 23, 2024
@dklilley
Copy link
Member

Thanks for moving this to a new issue!

Can you share the log files after attempting to connect? You can find the log directory at the top of the Output tab in VS Code.

@sbom641
Copy link
Author

sbom641 commented Jul 25, 2024

I am not entirely sure if you are reffering to the following error log, but this is the output from the MATLAB Language Server.

image

image

@dklilley
Copy link
Member

Thank you for sharing those. I agree that the error would indicate that the path should be incorrect, but clearly it is correct.

I would like to do some additional debugging to try to figure out what is happening. Could you reach out to [email protected] to open a tech support case? Please reference this issue, and indicate that I have requested that the case be escalated to me.

@willowfly
Copy link

come up with the same issure ~

@TSUNAMI-SHEN
Copy link

I would like to ask if this problem has been solved

@dklilley
Copy link
Member

dklilley commented Aug 9, 2024

Unfortunately no, it is not yet known why this issue is occurring.

Can you try the following:
Does the matlab system command (run from a system terminal) correctly start the MATLAB application? If so, try removing any value from the MATLAB: Install Path setting in VS Code. Does this enable MATLAB to connect? If not, it would be helpful to share the logs from the language server.

@stevemolde
Copy link

I'm having the same issue. The matlab system command correctly starts MATLAB. I removed the value from MATLAB: Install Path, but there is still no connection. I'm not sure how to share the logs of the language server.

@thelongcommute
Copy link

I have the same issue. The Matlab VScode extension was working fine yesterday with Matlab2023b and then today it stopped working with both Matlab 2023b and 2024a. This is what I see for the output from the Matlab Language Server. Note I was changing the Install path from 2023b to 2024a to see if it resolved the problem.

image

@dklilley
Copy link
Member

We are still working to identify the cause of this, but unfortunately have not been able to reproduce it ourselves.

@thelongcommute - do you happen to know if there were any changes made to your setup which may have coincided with this breaking (any OS/software updates, an update of the extension or MATLAB, any new VS Code extensions installed, etc.)?

@thelongcommute
Copy link

Hello @dklilley. Thank you for the quick response!

I do not believe any changes were made to my setup. I restarted my computer for the first time in a few days. I had a OS update earlier this week but have been using the extension since. I have 'auto update' turned on for the Matlab extension so I believe the last time it was updated was probably around 2024-08-16 on the release of 1.2.5 . I have no installed any new vscode extensions in the past few days.

I have noticed that I cant launch Matlab 2023b anymore through the normal Matlab App. I just see the launching page but the Matlab App never opens. I tried uninstalling and re-installing the App but that does not resolved the problem. I have both Matlab 2024a and 2023b installed on my computer and Matlab 2024a still behaves correctly through the App, but does not work with VScode either.

Looking forward to a solution as I was really enjoying the Vscode extension!

@dklilley
Copy link
Member

Thanks for the extra info!

It sounds like the issue with R2023b is unrelated to the VS Code extension. If you would like to resolve that issue, I would recommend reaching out to MathWorks technical support.

I will be continuing to look into the issue with starting MATLAB from the VS Code extension, and will update this issue when I have more information.

@darkEnvious
Copy link

Hi, any update on this issue on the MATLAB 2024a front? I'm unable to use the extension to connect MATLAB to VSCode. Any help is much appreciated, TIA!

image

@dklilley
Copy link
Member

We are still trying to determine the cause of this issue.

It seems that this may be related to a permissions issue, but we have not been able to reproduce this ourselves. Can you try launching VS Code as an administrator and report back whether MATLAB was able to connect or if there is any change in the error you are seeing in the Output window in VS Code?

@codyslater
Copy link

I was also having this issue still, exactly as above:

  • OS Version: Windows 11 Pro 23H2
  • VS Code Version: 1.95.1
  • MATLAB extension version: 1.2.6

I ended up finding out that the reason was because I had previously set matlab to automatically run as administrator (Properties -> Compatibility -> Run as admin). Running vscode as admin didn't resolve this, but removing the automatic launching of matlab as an admin did resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants