JuliaDebug / JuliaDebug/Cthulhu.jl
Error when descending into function
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 709
- Forks
- 46
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 2
Description
MWE:
Symbolics @ https://github.com/JuliaSymbolics/Symbolics.jl/commit/967d872fee6695a796e7142e232158fefd0272aa
Cthulhu@2.17.10
julia> using Revise, Cthulhu
julia> using Symbolics
julia> descend(Symbolics.executediff, Tuple{Differential, Symbolics.SymbolicT})
In [T]yped code mode, with [w]arn, [t]ype annotations and [o]ptimize enabled. First, R to revise and redisplay (due to #688). Then, attempting to descend into
invoke #executediff#97(::Bool,::Bool,::typeof(Symbolics.executediff),::Differential,::SymbolicUtils.BasicSymbolicImpl.var"typeof(BasicSymbolicImpl)"{SymReal})::SymbolicUtils.BasicSymbolicImpl.var"typeof(BasicSymbolicImpl)"{SymReal}
(The only option) errors with
ERROR: AssertionError: length(infos) == length(info.results)
Stacktrace:
[1] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/reflection.jl:189
[2] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/reflection.jl:64
[3] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/CthulhuBase.jl:385
[4] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/CthulhuBase.jl:290
[5] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/CthulhuBase.jl:529
[6] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/CthulhuBase.jl:290
[7] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/CthulhuBase.jl:676
[8] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/CthulhuBase.jl:676
[9] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/CthulhuBase.jl:687
[10] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/CthulhuBase.jl:684
[11] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/CthulhuBase.jl:134
[12] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/CthulhuBase.jl:131
[13] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/CthulhuBase.jl:123
[14] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/CthulhuBase.jl:115
[15] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/CthulhuBase.jl:152
[16] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/CthulhuBase.jl:152
[17] descend(::Any, ::Vararg{Any}; kwargs...)
@ Cthulhu ~/.julia/packages/Cthulhu/zErIC/src/Cthulhu.jl:113
[18] top-level scope
@ ~/.julia/packages/Cthulhu/zErIC/src/Cthulhu.jl:112
[19] top-level scope
@ REPL[3]:1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the Symbolics and Cthulhu versions, using descend(Symbolics.executediff, Tuple{Differential, Symbolics.SymbolicT}) in the stated mode and revising first. Start at src/reflection.jl:189, where the length assertion fails, and trace the surrounding reflection code. Done means descending into the shown invoke method no longer raises this AssertionError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100