Skip to content

CodeTracking 2.0 compat bug: UndefVarError: replace_buildbot_stdlibpath not defined in CodeTrackingΒ #381

@vram0gh2

Description

@vram0gh2

This is on Julia 1.11.6 (official build), Linux x86-64 glibc. I don't have ready access to other platforms to test.

(@v1.11) pkg> st
Status `~/.julia/environments/v1.11/Project.toml`
  [31a5f54b] Debugger v0.7.14
  [5903a43b] Infiltrator v1.9.2
  [5fb14364] OhMyREPL v0.5.31

Snippets of (@v1.11) pkg> st --manifest

(@v1.11) pkg> st --manifest
Status `~/.julia/environments/v1.11/Manifest.toml`
  [da1fd8a2] CodeTracking v2.0.0
<...>
  [aa1ae85d] JuliaInterpreter v0.10.4
  [70703baa] JuliaSyntax v1.0.2
<...>

Where <...> represents elisions for concision.

julia> include("somepath/code_for_somefunc.jl")
somefunc(generic function with 1 method)

julia> @enter somefunc(5.5)
ERROR: UndefVarError: `replace_buildbot_stdlibpath` not defined in `CodeTracking`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
  [1] getproperty
    @ ./Base.jl:42 [inlined]
  [2] locdesc(io::IOBuffer, frame::JuliaInterpreter.Frame; current_line::Bool)
    @ Debugger ~/.julia/packages/Debugger/PgguH/src/locationinfo.jl:109
  [3] locdesc
    @ ~/.julia/packages/Debugger/PgguH/src/locationinfo.jl:60 [inlined]
  [4] (::Debugger.var"#3#4"{Bool, JuliaInterpreter.Frame})(io::IOBuffer)
    @ Debugger ~/.julia/packages/Debugger/PgguH/src/locationinfo.jl:53
  [5] sprint(::Function; context::Nothing, sizehint::Int64)
    @ Base ./strings/io.jl:114
  [6] sprint
    @ ./strings/io.jl:107 [inlined]
  [7] #locdesc#2
    @ ~/.julia/packages/Debugger/PgguH/src/locationinfo.jl:51 [inlined]
  [8] locdesc
    @ ~/.julia/packages/Debugger/PgguH/src/locationinfo.jl:50 [inlined]
  [9] print_status(io::Base.TTY, frame::JuliaInterpreter.Frame; force_lowered::Bool)
    @ Debugger ~/.julia/packages/Debugger/PgguH/src/printing.jl:150
 [10] RunDebugger(frame::JuliaInterpreter.Frame, repl::Nothing, terminal::Nothing; initial_continue::Bool)
    @ Debugger ~/.julia/packages/Debugger/PgguH/src/repl.jl:166
 [11] RunDebugger
    @ ~/.julia/packages/Debugger/PgguH/src/repl.jl:12 [inlined]
 [12] RunDebugger(frame::JuliaInterpreter.Frame)
    @ Debugger ~/.julia/packages/Debugger/PgguH/src/repl.jl:12
 [13] macro expansion
    @ ~/.julia/packages/Debugger/PgguH/src/Debugger.jl:127 [inlined]
 [14] top-level scope
    @ REPL[4]:1

The offending line:

path = CodeTracking.replace_buildbot_stdlibpath(String(path))

It looks like replace_buildbot_stdlibpath was removed in this commit: JuliaDebug/CodeTracking.jl@21dc4f9 , referenced in the CodeTracking.jl 2.0 release notes: https://github.com/timholy/CodeTracking.jl/releases/tag/v2.0.0

If I explicitly add CodeTracking to the project and pin it to 1.3.9, this error goes away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions