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

Update warning message for windows #236

Merged
merged 1 commit into from
Feb 20, 2025
Merged

Conversation

tqml
Copy link
Collaborator

@tqml tqml commented Feb 14, 2025

Adds additional information for Windows users.

A lot of trouble that windows users seem to have is that the engine API works differently on Windows.

According to Mathworks docs:
Instead of launching a new process (like on Mac/Linux) it opens a COM channel to the version of MATLAB that is registered in Windows. If multiple MATLAB versions are used or MATLAB was updated, it can be that the version Julia uses is not the same that is registered in Windows.

There are two options:

  1. Use version that is registered (rebuild MATLAB.jl) - but its unclear to find out which version is registered.
  2. Open a specific MATLAB version and manually register it. Then adapt MATLAB.jl (if needed)

Until we can do option 1 automatically, I think for users, its easier to perform option 2. I added the instructions into the warning that is printed.

The old instruction suggested doing this in an command prompt but additional information were missing how to control the version that is actually getting registered. To make it smoother and avoid confusion, I think the graphical way is better suited and I removed the mention of the CLI way.

Closes #167

Related: #182

Relevant docs from Mathworks:

@tqml tqml requested a review from musm February 14, 2025 10:50
@tqml tqml changed the title Update warning message to help windows users Update warning message for windows Feb 14, 2025
@ViralBShah
Copy link
Contributor

Looks good.

@tqml tqml merged commit ddf3968 into JuliaInterop:master Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to open a MATLAB engine session on Windows
2 participants