JuliaDebug / JuliaDebug/Cthulhu.jl

`MethodError: no method matching cthulhu_typed` on julia nightly

Open
#669 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
709
Forks
46
Avg merge
1d 13h
Merged PRs (30d)
2

Description

julia> using LinearAlgebra

julia> U = UpperTriangular(ones(3,3))
3×3 UpperTriangular{Float64, Matrix{Float64}}:
 1.0  1.0  1.0
  ⋅   1.0  1.0
  ⋅    ⋅   1.0

julia> @descend LinearAlgebra.preprocess_broadcasted(UpperTriangular, U)
[ Info: tracking LinearAlgebra
preprocess_broadcasted(::Type{T}, A) where T @ LinearAlgebra ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/LinearAlgebra/src/structuredbroadcast.jl:274
274 (preprocess_broadcasted(::(Type{T})::Type{UpperTriangular}, A::UpperTriangular{Float64, Matrix{Float64}}) where {T})::Matrix{Float64} = _preprocess_broadcasted(T::Type{UpperTriangular}, A::UpperTriangular{Float64, Matrix{Float64}})
Select a call to descend into or ↩ to ascend. [q]uit. [b]ookmark.
Toggles: [w]arn, [h]ide type-stable statements, [t]ype annotations, [s]yntax highlight for Source/LLVM/Native, [j]ump to source always.
Show: [S]ource code, [A]ST, [T]yped code, [L]LVM IR, [N]ative code
Actions: [E]dit source code, [R]evise and redisplay
 • _preprocess_broadcasted(T::Type{UpperTriangular}, A::UpperTriangular{Float64, Matrix{Float64}})
   ↩
_preprocess_broadcasted(::Type{UpperTriangular}, A) @ LinearAlgebra ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/LinearAlgebra/src/structuredbroadcast.jl:280
ERROR: MethodError: no method matching cthulhu_typed(::IOContext{…}, ::Symbol, ::Nothing, ::Type{…}, ::Type{…}, ::Compiler.Effects, ::Core.CodeInstance; iswarn::Bool, optimize::Bool, hide_type_stable::Bool, pc2remarks::Nothing, pc2effects::Nothing, pc2excts::Nothing, inline_cost::Bool, type_annotations::Bool, annotate_source::Bool, inlay_types_vscode::Bool, diagnostics_vscode::Bool, jump_always::Bool, interp::CthulhuCompilerExt.CthulhuInterpreter)
The function `cthulhu_typed` exists, but no method is defined for this combination of argument types.

Closest candidates are:
  cthulhu_typed(::IO, ::CthulhuCompilerExt.DInfo.DebugInfo, ::Any...; kwargs...)
   @ CthulhuCompilerExt ~/.julia/packages/Cthulhu/7kJzc/src/codeview.jl:99
  cthulhu_typed(::IO, ::Symbol, ::Union{Compiler.IRCode, Core.CodeInfo}, ::Any, ::Any, ::Compiler.Effects, ::Union{Nothing, Core.CodeInstance}; iswarn, hide_type_stable, optimize, pc2remarks, pc2effects, pc2excts, inline_cost, type_annotations, annotate_source, inlay_types_vscode, diagnostics_vscode, jump_always, interp)
   @ CthulhuCompilerExt ~/.julia/packages/Cthulhu/7kJzc/src/codeview.jl:101

Stacktrace:
  [1] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/codeview.jl:99
  [2] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/codeview.jl:99
  [3] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:410
  [4] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/ui.jl:103
  [5] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:409
  [6] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:290
  [7] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:529
  [8] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:290
  [9] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:676
 [10] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:676
 [11] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:687
 [12] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:684
 [13] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:134
 [14] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:131
 [15] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:123
 [16] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:115
 [17] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:152
 [18] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/CthulhuBase.jl:152
 [19] descend(::Any, ::Vararg{Any}; kwargs...)
    @ Cthulhu ~/.julia/packages/Cthulhu/7kJzc/src/Cthulhu.jl:113
 [20] top-level scope
    @ ~/.julia/packages/Cthulhu/7kJzc/src/Cthulhu.jl:112
 [21] top-level scope
    @ REPL[3]:1
Some type information was truncated. Use `show(err)` to see complete types.

(@devtools) pkg> st -m TypedSyntax
Status `~/.julia/environments/devtools/Manifest-v1.13.toml`
  [d265eb64] TypedSyntax v1.5.0

(@devtools) pkg> st Cthulhu
Status `~/.julia/environments/devtools/Project.toml`
  [f68482b8] Cthulhu v2.17.6

julia> versioninfo()
Julia Version 1.13.0-DEV.1125
Commit fd1c6fd302b (2025-09-13 17:37 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz
  WORD_SIZE: 64
  LLVM: libLLVM-20.1.8 (ORCJIT, skylake)
  GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 8 virtual cores)
Environment:
  LD_LIBRARY_PATH = /usr/local/lib:
  JULIA_EDITOR = subl

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure on Julia 1.13 nightly using the LinearAlgebra example and @descend command shown in the issue. Read Cthulhu.jl:112 and src/codeview.jl:99-101, then determine why cthulhu_typed receives arguments matching no available method; done means the example descends without this MethodError.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.