mathworks / mathworks/MATLAB-extension-for-vscode

Please add a way to specify the license file location

Open
#142 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
435
Forks
40
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the VS Code extension's startup path and how it launches the activation app; compare handling of the -c command-line switch with environment variables visible in the integrated terminal. Done means users can provide a license location through an extension preference or the existing environment variable, avoiding activation when connecting through Remote SSH from Windows.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab, typescript, vscode
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.