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

Please add a way to specify the license file location #142

Open thht opened 6 months ago

thht commented 6 months ago

Hi, we're running Matlab in an apptainer container. This runs on a cluster node we connect to via ssh using the VS Code Remote SSH extension. The container image is public so we cannot put any license information in there. The workaround so far is to specify the license server as an environment variable. This works fine when running slurm jobs and starting matlab from the shell etc. But the VS Code extension does not seem to care about the env variable so it starts the activation app. This fails if the user is connecting from a windows machine because activation needs X which the user does not have. (It works fine from Linux because X11 forwarding is enabled. Still, not ideal because just checking out from the lic server would be more convenient).

I would like to suggest to add a preference to the extension similar to the -c command line switch, so users can enter their license location. Alternatively one could make sure to honor the environment variable which I have checked is visible when I open a terminal!

Thanks!

dklilley commented 6 months ago

Hi @thht, thanks for raising this to us!

Can you clarify which environment variable you are referring to?

thht commented 6 months ago

I'm referring to the MLM_LICENSE_FILE env variable.

dklilley commented 6 months ago

Thanks for the clarification!