Skip to content

ERROR: TypeError: in specializations, expected DataType, got Type{Union{}} #573

@fredrikekre

Description

@fredrikekre

I don't have a MWE for this (yet), but I get the following error in the Debugger.

ERROR: TypeError: in specializations, expected DataType, got Type{Union{}}
Stacktrace:
  [1] specialize_method(method::Method, atype::Any, sparams::Core.SimpleVector; preexisting::Bool, compilesig::Bool)
    @ Core.Compiler ./compiler/utilities.jl:207
  [2] specialize_method
    @ ./compiler/utilities.jl:193 [inlined]
  [3] Base.StackTraces.StackFrame(frame::JuliaInterpreter.Frame)
    @ JuliaInterpreter ~/.julia/packages/JuliaInterpreter/ktCFr/src/utils.jl:754
  [4] show_backtrace(io::IOContext{IOBuffer}, frame::JuliaInterpreter.Frame)
    @ JuliaInterpreter ~/.julia/packages/JuliaInterpreter/ktCFr/src/utils.jl:774
  [5] showerror(io::IOContext{IOBuffer}, ex::TypeError, bt::JuliaInterpreter.Frame; backtrace::Bool)
    @ Base ./errorshow.jl:90
  [6] showerror
    @ ./errorshow.jl:86 [inlined]
  [7] display_error(io::IOContext{IOBuffer}, er::TypeError, frame::JuliaInterpreter.Frame)
    @ JuliaInterpreter ~/.julia/packages/JuliaInterpreter/ktCFr/src/utils.jl:794
  [8] (::Debugger.var"#10#19"{REPL.LineEdit.Prompt, Debugger.DebuggerState})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
    @ Debugger ~/.julia/packages/Debugger/XLUtz/src/repl.jl:72

As a clue, the code I am debugging is broken, and in particular there is a MethodError thrown when running outside the Debugger.

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