# REPL.LineEditREPL isn't a LineEditREPL

**URL:** https://discourse.julialang.org/t/repl-lineeditrepl-isnt-a-lineeditrepl/133977
**Category:** General Usage
**Tags:** repl
**Created:** [November 18, 2025, 7:25pm UTC](https://discourse.julialang.org/t/repl-lineeditrepl-isnt-a-lineeditrepl/133977 "2025-11-18T19:25:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![BC\_Arrr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bc_arrr/32/219473_2.png) [@BC\_Arrr](https://discourse.julialang.org/u/BC_Arrr)
#### Post date: [November 18, 2025, 7:25pm UTC](https://discourse.julialang.org/t/repl-lineeditrepl-isnt-a-lineeditrepl/133977/1 "2025-11-18T19:25:42Z")

</div>

I can’t for the life of me figure out where things have gone wrong. I assume that multiple references to `REPL` exist and lead to the following errors:

```julia-auto
$ julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.11.7 (2025-09-08)
 _/ |\ __'_|_|_|\__'_| |  
|__/ |

julia> versioninfo()
Julia Version 1.11.7
Commit f2b3dbda30 (2025-09-08 12:10 UTC)
Build Info:

    Note: This is an unofficial build, please report bugs to the project
    responsible for this build and not to the Julia project unless you can
    reproduce the issue using official builds available at https://julialang.org

Platform Info:
  OS: macOS (arm64-apple-darwin22.6.0)
  CPU: 10 × Apple M1 Max
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, apple-m1)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)
Environment:
  JULIA_DEPOT_PATH = {somepath}/julia-depot
  JULIA_PKG_DEVDIR = {anotherpath}/Julia

julia> import REPL

julia> REPL.activate()
ERROR: TypeError: in typeassert, expected REPL.LineEditREPL, got a value of type REPL.LineEditREPL
Stacktrace:
 [1] activate
   @ {somepath}/julia/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:642 [inlined]
 [2] activate()
   @ REPL {somepath}/julia/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:642
 [3] top-level scope
   @ REPL[3]:1

julia> isa(Base.active_repl, REPL.LineEditREPL)
false

julia> typeof(Base.active_repl)
REPL.LineEditREPL

```

Anybody have an idea where things are going awry?

---

<div class="post-metadata">

### Author: ![matthias314](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@matthias314](https://discourse.julialang.org/u/matthias314)
#### Post date: [November 18, 2025, 7:47pm UTC](https://discourse.julialang.org/t/repl-lineeditrepl-isnt-a-lineeditrepl/133977/2 "2025-11-18T19:47:44Z")

</div>

Since you have set `JULIA_DEPOT_PATH`, it could be related to the following:

> <https://github.com/JuliaLang/julia/issues/56216>
>
> \### Behaviour
> 
> When loading some packages in REPL, \`REPLExt\` throws an exception…. 
> 
> \### Expected behaviour
> 
> No exception thrown?
> 
> \### Reproduce
> 
> To reproduce:
> 1. \`julia-release --startup-file=no -t 1\`
> 2. \`using IJulia\` (or other packages)
> 
> Packages that reproduce the bug:
> \- \`IJulia\`
> \- \`Pluto\`
> \- \`CairoMakie\`
> 
> Packages that don't reproduce the bug:
> \- \`StaticArrays\`
> \- \`PackageCompiler\`
> 
> \### Version info:
> 
> \`\`\`
> Julia Version 1.11.1
> Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
> Build Info:
> Official https://julialang.org/ release
> Platform Info:
> OS: Linux (x86\_64-linux-gnu)
> CPU: 16 × AMD Ryzen 7 4800H with Radeon Graphics
> WORD\_SIZE: 64
> LLVM: libLLVM-16.0.6 (ORCJIT, znver2)
> Threads: 16 default, 0 interactive, 8 GC (on 16 virtual cores)
> Environment:
> JULIA\_NUM\_THREADS = 16
> LD\_LIBRARY\_LOADPATH = /opt/wine-staging/lib64:/opt/wine-staging/lib:/opt/nvim-linux64/lib:/opt/containerd/lib:
> JULIA\_CUDA\_USE\_BINARYBUILDER = true
> JULIA\_DEPOT\_PATH = /home/\<my-user\>/.cache/julia
> \`\`\`
> 
> \### Stack trace 
> 
> 
> \<details\>
> 
> \`\`\`julia
> ERROR: InitError: MethodError: no method matching repl\_init(::REPL.LineEditREPL)
> The function \`repl\_init\` exists, but no method is defined for this combination of argument types.
> 
> Closest candidates are:
> repl\_init(::REPL.AbstractREPL)
> @ REPLExt ~/.julia/juliaup/julia-1.11.1+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/ext/REPLExt/REPLExt.jl:163
> 
> Stacktrace:
> \[1\] \_\_init\_\_()
> @ REPLExt ~/.julia/juliaup/julia-1.11.1+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/ext/REPLExt/REPLExt.jl:305
> \[2\] run\_module\_init(mod::Module, i::Int64)
> @ Base ./loading.jl:1336
> \[3\] register\_restored\_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
> @ Base ./loading.jl:1324
> \[4\] \_include\_from\_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore\_native::Nothing; register::Bool)
> @ Base ./loading.jl:1213
> \[5\] \_include\_from\_serialized (repeats 2 times)
> @ ./loading.jl:1169 \[inlined\]
> \[6\] \_require\_search\_from\_serialized(pkg::Base.PkgId, sourcepath::String, build\_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT\_PATH::Vector{String})
> @ Base ./loading.jl:1969
> \[7\] \_require(pkg::Base.PkgId, env::String)
> @ Base ./loading.jl:2450
> \[8\] \_\_require\_prelocked(uuidkey::Base.PkgId, env::String)
> @ Base ./loading.jl:2315
> \[9\] #invoke\_in\_world#3
> @ ./essentials.jl:1089 \[inlined\]
> \[10\] invoke\_in\_world
> @ ./essentials.jl:1086 \[inlined\]
> \[11\] \_require\_prelocked(uuidkey::Base.PkgId, env::String)
> @ Base ./loading.jl:2302
> \[12\] macro expansion
> @ ./loading.jl:2241 \[inlined\]
> \[13\] macro expansion
> @ ./lock.jl:273 \[inlined\]
> \[14\] \_\_require(into::Module, mod::Symbol)
> @ Base ./loading.jl:2198
> \[15\] #invoke\_in\_world#3
> @ ./essentials.jl:1089 \[inlined\]
> \[16\] invoke\_in\_world
> @ ./essentials.jl:1086 \[inlined\]
> \[17\] require(into::Module, mod::Symbol)
> @ Base ./loading.jl:2191
> during initialization of module REPLExt
> \`\`\`
> \</details\>
> 
> \### Extra information
> 
> \- Loading the packages in non-interactive mode works just fine.
> \- In REPL, when the exception is thrown, load the package again to make it works (v1.11.1).

Try adding a trailing `:` to `JULIA_DEPOT_PATH`.

---

<div class="post-metadata">

### Author: ![BC\_Arrr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bc_arrr/32/219473_2.png) [@BC\_Arrr](https://discourse.julialang.org/u/BC_Arrr)
#### Post date: [November 19, 2025, 2:10pm UTC](https://discourse.julialang.org/t/repl-lineeditrepl-isnt-a-lineeditrepl/133977/3 "2025-11-19T14:10:06Z")

</div>

I read the section on `JULIA_DEPOT_PATH` repeatedly. There should be a big warning about breaking things without a trailing `:`
