JuliaInterop / JuliaInterop/MATLAB.jl

Updates to .m files do not take effect

Open
#228 1 comment 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

Having a file like simple_addition.m

1 + 1

gives as expected

julia> mat"simple_addition"
2.0

However, modifying simple_addition.m to

1 + 2

still gives

julia> mat"simple_addition"
2.0

Restarting julia doesn't help.

After showing the msession, running the file, and then hiding the msession, mat"simple_addition" begins to work.

Perhaps I am missing something, seems like someone else should have run into this before :)

Tried on Matlab R2021b on Windows, Julia 1.9.3

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

Reproduce the behavior with simple_addition.m and the mat"simple_addition" call using the reported Julia and MATLAB versions. Compare execution before and after showing and hiding the msession, then trace the MATLAB Engine integration path involved in file evaluation. Done means edits to the .m file are reflected without restarting Julia or toggling the msession.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, matlab
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.