# UndefVarError: active\_repl not defined

**URL:** <https://discourse.julialang.org/t/undefvarerror-active-repl-not-defined/34728>\
**Category:** New to Julia\
**Tags:** package\
**Created:** [February 16, 2020, 4:54pm UTC](https://discourse.julialang.org/t/undefvarerror-active-repl-not-defined/34728 "2020-02-16T16:54:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![henry2004y](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henry2004y/32/9284_2.png) [@henry2004y](https://discourse.julialang.org/u/henry2004y)\
**Post date:** [February 16, 2020, 4:54pm UTC](https://discourse.julialang.org/t/undefvarerror-active-repl-not-defined/34728/1 "2020-02-16T16:54:15Z")

</div>

Hi everyone,

I am upgrading this [IDL.jl](https://github.com/henry2004y/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,

```julia
(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](https://github.com/henry2004y/IDL.jl/blob/bcec124e1f808b4ab0091a7d878b06cc67ab1000/src/IDLREPL.jl#L10). I don’t understand why it’s not defined…
