Skip to content

methods_with_generators undefined when running SnoopCompile.write #407

@StevenWhitaker

Description

@StevenWhitaker

Not quite a MRE, but the essence of the code was as follows:

tinf = @snoop_inference some_function()
(_, pcs) = SnoopCompile.parcel(tinf)
SnoopCompile.write("dir", pcs)

Sorry I forgot to grab the full stacktrace, but here's where methods_with_generators is called: https://github.com/timholy/SnoopCompile.jl/blob/d803b4e7a6ac65d344b4089d8aba3d08f2b7c96d/src/utils.jl#L96

Interestingly, the error occurred not immediately but after several statements like the following printed:

Base: precompiled 0.0013572730000000002 out of 0.003003319000000001

Hopefully it's just a missing import that's easy to fix, but if a better stacktrace is needed I can grab one.

EDIT: Upon further inspection, it appears this method was defined in earlier versions of SnoopCompile, but was removed for some reason.

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