Skip to content

MethodInfoKey not defined in Revise for Julia v1.12 package #952

@kapple19

Description

@kapple19

Revise 3.9.0 loads in the v1.12 environment as per my startup.jl, and triggers the following:

[ Info: Precompiling Revise [295af30f-e4ad-537b-8983-00126c2a3abe] 
WARNING: Imported binding CodeTracking.MethodInfoKey was undeclared at import time during import to Revise.
WARNING: Imported binding JuliaInterpreter.Interpreter was undeclared at import time during 
import to Revise.
WARNING: Imported binding JuliaInterpreter.RecursiveInterpreter was undeclared at import time during import to Revise.
ERROR: LoadError: UndefVarError: `MethodInfoKey` not defined in `Revise`
Suggestion: this global was defined as `CodeTracking.MethodInfoKey` but not assigned a value.
Stacktrace:
  [1] top-level scope
    @ C:\Users\T0185914\.julia\packages\Revise\9Foay\src\lowered.jl:12
  [2] include(mapexpr::Function, mod::Module, _path::String)
    @ Base .\Base.jl:304
  [3] top-level scope
    @ C:\Users\T0185914\.julia\packages\Revise\9Foay\src\packagedef.jl:91
  [4] include(mapexpr::Function, mod::Module, _path::String)
    @ Base .\Base.jl:304
  [5] top-level scope
    @ C:\Users\T0185914\.julia\packages\Revise\9Foay\src\Revise.jl:45
  [6] include(mod::Module, _path::String)
    @ Base .\Base.jl:303
  [7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
    @ Base .\loading.jl:2991
  [8] top-level scope
    @ stdin:5
  [9] eval(m::Module, e::Any)
    @ Core .\boot.jl:489
 [10] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)    @ Base .\loading.jl:2837
 [11] include_string
    @ .\loading.jl:2847 [inlined]
 [12] exec_options(opts::Base.JLOptions)
    @ Base .\client.jl:319
 [13] _start()
    @ Base .\client.jl:554
in expression starting at C:\Users\T0185914\.julia\packages\Revise\9Foay\src\lowered.jl:12  
in expression starting at C:\Users\T0185914\.julia\packages\Revise\9Foay\src\packagedef.jl:91
in expression starting at C:\Users\T0185914\.julia\packages\Revise\9Foay\src\Revise.jl:1    
in expression starting at stdin:5
ERROR: LoadError: Failed to precompile Revise [295af30f-e4ad-537b-8983-00126c2a3abe] to "C:\\Users\\T0185914\\.julia\\compiled\\v1.12\\Revise\\jl_1077.tmp".
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:44
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, 
keep_loaded_modules::Bool; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64}, loadable_exts::Nothing)
    @ Base .\loading.jl:3278
  [3] (::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId})()
    @ Base .\loading.jl:2647
  [4] mkpidlock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile C:\Users\T0185914\.julia\juliaup\julia-1.12.0-rc1+0.x64.w64.mingw32\share\julia\stdlib\v1.12\FileWatching\src\pidfile.jl:93
  [5] #mkpidlock#7
    @ C:\Users\T0185914\.julia\juliaup\julia-1.12.0-rc1+0.x64.w64.mingw32\share\julia\stdlib\v1.12\FileWatching\src\pidfile.jl:88 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile C:\Users\T0185914\.julia\juliaup\julia-1.12.0-rc1+0.x64.w64.mingw32\share\julia\stdlib\v1.12\FileWatching\src\pidfile.jl:114
  [7] #invokelatest_gr#233
    @ .\reflection.jl:1282 [inlined]
  [8] invokelatest_gr
    @ .\reflection.jl:1274 [inlined]
  [9] maybe_cachefile_lock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base .\loading.jl:3849
 [10] maybe_cachefile_lock
    @ .\loading.jl:3846 [inlined]
 [11] __require_prelocked(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2633
 [12] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2461
 [13] macro expansion
    @ .\loading.jl:2389 [inlined]
 [14] macro expansion
    @ .\lock.jl:376 [inlined]
 [15] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2354
 [16] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2330
 [17] include(mod::Module, _path::String)
    @ Base .\Base.jl:303
 [18] load_julia_startup()
    @ Base .\client.jl:362
 [19] exec_options(opts::Base.JLOptions)
    @ Base .\client.jl:277
 [20] _start()
    @ Base .\client.jl:554
in expression starting at C:\Users\T0185914\.julia\config\startup.jl:6
[ Info: Precompiling Revise [295af30f-e4ad-537b-8983-00126c2a3abe] 
WARNING: Imported binding CodeTracking.MethodInfoKey was undeclared at import time during import to Revise.
WARNING: Imported binding JuliaInterpreter.Interpreter was undeclared at import time during 
import to Revise.
WARNING: Imported binding JuliaInterpreter.RecursiveInterpreter was undeclared at import time during import to Revise.
ERROR: LoadError: UndefVarError: `MethodInfoKey` not defined in `Revise`
Suggestion: this global was defined as `CodeTracking.MethodInfoKey` but not assigned a value.
Stacktrace:
  [1] top-level scope
    @ C:\Users\T0185914\.julia\packages\Revise\9Foay\src\lowered.jl:12
  [2] include(mapexpr::Function, mod::Module, _path::String)
    @ Base .\Base.jl:304
  [3] top-level scope
    @ C:\Users\T0185914\.julia\packages\Revise\9Foay\src\packagedef.jl:91
  [4] include(mapexpr::Function, mod::Module, _path::String)
    @ Base .\Base.jl:304
  [5] top-level scope
    @ C:\Users\T0185914\.julia\packages\Revise\9Foay\src\Revise.jl:45
  [6] include(mod::Module, _path::String)
    @ Base .\Base.jl:303
  [7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
    @ Base .\loading.jl:2991
  [8] top-level scope
    @ stdin:5
  [9] eval(m::Module, e::Any)
    @ Core .\boot.jl:489
 [10] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)    @ Base .\loading.jl:2837
 [11] include_string
    @ .\loading.jl:2847 [inlined]
 [12] exec_options(opts::Base.JLOptions)
    @ Base .\client.jl:319
 [13] _start()
    @ Base .\client.jl:554
in expression starting at C:\Users\T0185914\.julia\packages\Revise\9Foay\src\lowered.jl:12  
in expression starting at C:\Users\T0185914\.julia\packages\Revise\9Foay\src\packagedef.jl:91
in expression starting at C:\Users\T0185914\.julia\packages\Revise\9Foay\src\Revise.jl:1    
in expression starting at stdin:5

What's going on here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions