JuliaInterop / JuliaInterop/MATLAB.jl

Multiple sessions doesn't seem to work on Windows

Open
#151 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
286
Forks
64
PR merge metrics
No merged PRs in 30d

Description

using MATLAB
s1 = MSession()
s2 = MSession()
put_variable(s1, :y, 1)
put_variable(s2, :y, 2)
jvalue(get_mvariable(s1, :y)  #output1
jvalue(get_mvariable(s2, :y)  #output2

I'm expecting output1=1 and output2=2. Works on mac.
However, it doesn't seem to work on Windows, where I get output1=output2=2.

Anyone know what's going on? I see there's some special handling of persistent sessions for Windows, but it looks like the code should work.

Contributor guide

No contributing guide indexed for this repository

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 by reproducing the Julia example with two MSession instances on Windows, then inspect the special handling for persistent sessions mentioned in the issue. Trace how each session is created and stores variables; done means the two sessions independently return 1 and 2, matching the behavior on macOS.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, matlab
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.