GeneralizedGenerated.jl icon indicating copy to clipboard operation
GeneralizedGenerated.jl copied to clipboard

Error showing `show`

Open sjbreiner opened this issue 3 years ago • 0 comments

Steps to reproduce:

# Results
julia> using GeneralizedGenerated

julia> methods(show)
⋮
[74] Error showing value of type Base.MethodList:
ERROR: UndefVarError: Name not defined
Stacktrace:
  [1] show(io::IOContext{IOBuffer}, #unused#::
SYSTEM (REPL): showing an error caused an error
ERROR: UndefVarError: Name not defined
Stacktrace:
  [1] show(io::IOContext{IOBuffer}, #unused#::
SYSTEM (REPL): caught exception of type UndefVarError while trying to handle a nested exception; giving up

There seem to be two offending methods (for me), both located in module GeneralizedGenerated.NGG. The only useful information I was able to identify for the methods themselves are their roots attributes: Problem method 1:

9-element Vector{Any}:
 :from_type
 :join
 ", "
 :|>
 :rmlines
 " = ("
 ";"
 ") -> "
 Symbol("/home/spencer/.julia/packages/GeneralizedGenerated/72VHh/src/ngg/runtime_fns.jl")

Problem method 2:

8-element Vector{Any}:
                   "ggfunc-"
                   Symbol("/home/spencer/.julia/packages/GeneralizedGenerated/72VHh/src/ngg/runtime_fns.jl")
                   MethodInstance for unsafe_write(::IOBuffer, ::Ptr{UInt8}, ::UInt64)
 0x0000000000000001
 0x0000000000000000
                   MethodInstance for throw_inexacterror(::Symbol, ::Type{Int64}, ::UInt64)
                   MethodInstance for write(::VSCodeServer.LimitIO{IOBuffer}, ::UInt8)
                   MethodInstance for unsafe_write(::Base.TTY, ::Ptr{UInt8}, ::UInt64)

sjbreiner avatar Aug 30 '22 14:08 sjbreiner