Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run the example with Julia 1.11 #361

Open
ali-ramadhan opened this issue Jan 7, 2025 · 0 comments
Open

Cannot run the example with Julia 1.11 #361

ali-ramadhan opened this issue Jan 7, 2025 · 0 comments

Comments

@ali-ramadhan
Copy link

The example worked for me in Julia 1.10 but not 1.11.

MWE:

using Debugger

function foo(n)
    x = n+1
    ((BigInt[1 1; 1 0])^x)[2,1]
end

@enter foo(20)

Error:

ERROR: Debugger.jl requires a LineEditREPL type of REPL
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] RunDebugger(frame::JuliaInterpreter.Frame, repl::Nothing, terminal::Nothing; initial_continue::Bool)
   @ Debugger ~/atdepth/comparing_oceananigans_1.10_1.11/julia_depot_1.11/packages/Debugger/zdZP1/src/repl.jl:20
 [3] RunDebugger
   @ ~/atdepth/comparing_oceananigans_1.10_1.11/julia_depot_1.11/packages/Debugger/zdZP1/src/repl.jl:12 [inlined]
 [4] RunDebugger(frame::JuliaInterpreter.Frame)
   @ Debugger ~/atdepth/comparing_oceananigans_1.10_1.11/julia_depot_1.11/packages/Debugger/zdZP1/src/repl.jl:12
 [5] macro expansion
   @ ~/atdepth/comparing_oceananigans_1.10_1.11/julia_depot_1.11/packages/Debugger/zdZP1/src/Debugger.jl:127 [inlined]
 [6] top-level scope
   @ REPL[3]:1

which is a bit confusing to me because

julia> typeof(Base.active_repl)
REPL.LineEditREPL

Environment: I'm using Julia 1.11 with Debugger.jl v0.7.10.

julia> versioninfo()
Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 48 × AMD Ryzen Threadripper 7960X 24-Cores
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver4)
Threads: 1 default, 0 interactive, 1 GC (on 48 virtual cores)
Environment:
  LD_PRELOAD = /usr/NX/lib/libnxegl.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant