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

adapt to linetable changes in Julia nightly #127

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

simeonschaub
Copy link
Contributor

@simeonschaub simeonschaub commented Sep 28, 2024

fixes #126

Note: Tests on 1.11 and 1.12 seem broken due to breakages in TerminalRegressionTests, but I was able to confirm that this fixed the error I encountered, i.e. this doesn't crash the infiltrate session anymore:

julia> (() -> @infiltrate)()
Infiltrating (::var"#2#3")()
  at REPL[2]:1


infil> error()
ERROR: 
Stacktrace:
  [1] error()
    @ Base ./error.jl:53
  [2] top-level scope
    @ none:1
  [3] top-level scope
    @ none:1
  [4] eval
    @ ./boot.jl:439 [inlined]
  [5] interpret(expr::Expr, evalmod::Module)
    @ Infiltrator ~/.julia/dev/Infiltrator/src/Infiltrator.jl:864
  [6] (::Infiltrator.var"#26#27"{Bool, String, Int64, Dict{…}, Vector{…}, REPL.LineEditREPL, Nothing, Nothing, Module, Base.TTY})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
    @ Infiltrator ~/.julia/dev/Infiltrator/src/Infiltrator.jl:688
  [7] #invokelatest#1
    @ ./essentials.jl:1048 [inlined]
  [8] invokelatest
    @ ./essentials.jl:1045 [inlined]
  [9] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:2766
 [10] run_interface
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:2760 [inlined]
 [11] debugprompt(mod::Module, locals::Dict{…}, trace::Vector{…}, terminal::REPL.Terminals.TTYTerminal, repl::REPL.LineEditREPL, ex::Nothing, bt::Nothing; nostack::Bool, file::String, fileline::Int64)
    @ Infiltrator ~/.julia/dev/Infiltrator/src/Infiltrator.jl:739
 [12] start_prompt(mod::Module, locals::Dict{Symbol, Any}, file::String, fileline::Int64, ex::Nothing, bt::Nothing; terminal::Nothing, repl::Nothing, nostack::Bool)
    @ Infiltrator ~/.julia/dev/Infiltrator/src/Infiltrator.jl:400
 [13] start_prompt(mod::Module, locals::Dict{Symbol, Any}, file::String, fileline::Int64, ex::Nothing, bt::Nothing)
    @ Infiltrator ~/.julia/dev/Infiltrator/src/Infiltrator.jl:300
 [14] start_prompt
    @ ~/.julia/dev/Infiltrator/src/Infiltrator.jl:300 [inlined]
 [15] macro expansion
    @ ~/.julia/dev/Infiltrator/src/Infiltrator.jl:68 [inlined]
 [16] (::var"#2#3")()
    @ Main ./REPL[2]:1
 [17] top-level scope
    @ REPL[2]:1
 [18] top-level scope
    @ REPL:1
Some type information was truncated. Use `show(err)` to see complete types.

infil> 

@pfitzseb pfitzseb merged commit db31af9 into JuliaDebug:master Sep 30, 2024
5 of 7 checks passed
@pfitzseb
Copy link
Member

Thanks!

@simeonschaub simeonschaub deleted the sds/fix_126 branch September 30, 2024 09:00
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

Successfully merging this pull request may close these issues.

failure on nightly due to debuginfo changes
2 participants