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
241 stars 16 forks source link

Matlab in a remote server #180

Open garikoitz opened 1 month ago

garikoitz commented 1 month ago

Describe the bug Not connecting to Matlab when connected to a server with matlab using a tunnel

To Reproduce Steps to reproduce the behavior:

  1. Start a tunnel to a server with Matlab installed
  2. In Matlab configuration, add the result of the remote server's matlabroot
  3. Ask to connect to matlab
  4. See forever MATLAB: Establishing Connection

Expected behavior I would like to run 1+1 in my remote file with shift+enter in my console, that actually runs in the remote server's matlab

Screenshots I don't think it is required

Useful Information

Additional context No more context, it would be great to have a system to test if local VS Code is able to see remote Matlab. Right now, I edit the .m in the remote machine, and I copy and paste into a remote terminal, where I have a "matlab -nodesktop' opened

dklilley commented 1 month ago

Thank you for raising this to us!

Can you please share the language server logs from your VS Code session. These can be found using the following directions:

  1. Open the Output panel in VS Code (can be opened using Shift+Cmd+U)
  2. In the drop-down, select "MATLAB Language Server"
  3. At the top of the log, there should be a "Log Directory" printed
  4. Please share the log flies from this directory

It would also be helpful if you could provide example steps of how you are setting up the tunnel, including the value you are specifying as the matlabroot.

Thank you!