Skip to content

UndefRefError after upgrading Matlab #152

@bantin

Description

@bantin

I just upgraded to Matlab 2018b. I changed my MATLAB_HOME environment variable to the new path, and I can confirm that Julia can see the new path, because running get(ENV, "MATLAB_HOME", "") returns "/Applications/MATLAB_R2018b.app" as expected.

However, I can't access any functionality from MATLAB.jl. Simply running @mput with any variable gives the following error.

julia> @mput a
ERROR: UndefRefError: access to undefined reference
Stacktrace:
 [1] (::getfield(MATLAB, Symbol("##MSession#11#12")))(::String, ::Type, ::Int64) at /Users/Bantin/.julia/packages/MATLAB/SljED/src/engine.jl:26
 [2] Type at /Users/Bantin/.julia/packages/MATLAB/SljED/src/engine.jl:23 [inlined] (repeats 2 times)
 [3] get_default_msession at /Users/Bantin/.julia/packages/MATLAB/SljED/src/engine.jl:88 [inlined]
 [4] put_variable(::Symbol, ::Int64) at /Users/Bantin/.julia/packages/MATLAB/SljED/src/engine.jl:159
 [5] top-level scope at none:0

I'm using Julia 1.0 on Mac OSX Yosemite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions