UndefVarError: active_repl not defined

Hi everyone,

I am upgrading this IDL.jl to be compatible with Julia 1.3. Similar to Matlab, IDL is another commonly used numerical computing language. This package has support for dropping into IDL repl, and it works fine if I just say using IDL. However, during package testing,

(v1.3) pkg> activate .
Activating environment at `~/Documents/Computer/Julia/IDL/Project.toml`
(IDL) pkg> test
   Testing IDL
 Resolving package versions...
ERROR: LoadError: InitError: UndefVarError: active_repl not defined
Stacktrace:
 [1] idl_repl() at /Users/hyzhou/Documents/Computer/Julia/IDL/src/IDLREPL.jl:10
 [2] __init__() at /Users/hyzhou/Documents/Computer/Julia/IDL/src/IDL.jl:41
 [3] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:692
 [4] _require_from_serialized(::String) at ./loading.jl:743
 [5] _require(::Base.PkgId) at ./loading.jl:1034
 [6] require(::Base.PkgId) at ./loading.jl:922
 [7] require(::Module, ::Symbol) at ./loading.jl:917
 [8] include at ./boot.jl:328 [inlined]
 [9] include_relative(::Module, ::String) at ./loading.jl:1105
 [10] include(::Module, ::String) at ./Base.jl:31
 [11] include(::String) at ./client.jl:424
 [12] top-level scope at none:6
during initialization of module IDL
in expression starting at /Users/hyzhou/Documents/Computer/Julia/IDL/test/runtests.jl:1
ERROR: Package IDL errored during testing

where the function active_repl is used here. I don’t understand why it’s not defined…

1 Like