Skip to content

Doc recommends considering backedges[end] but this might not exist #210

@tlienart

Description

@tlienart

In playing with @snoopr, I got

inserting joinpath(uri::URIs.URI, parts::String...) in URIs at /Users/tlienart/.julia/packages/URIs/1jrj1/src/URIs.jl:466 invalidated:
   mt_backedges: 1: signature Tuple{typeof(joinpath), Any, String} triggered MethodInstance for Artifacts.jointail(::Any, ::String) (0 children)

following the docs I tried:

method_invalidations = trees[1]
root = method_invalidations.backedges[end]

this failed with

ERROR: BoundsError: attempt to access 0-element Vector{SnoopCompile.InstanceNode} at index [0]
Stacktrace:
 [1] getindex(A::Vector{SnoopCompile.InstanceNode}, i1::Int64)
   @ Base ./array.jl:787
 [2] top-level scope
   @ none:1

so maybe the doc should just clarify why there may not be such a backedge?

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