-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Description
Hi, first of all, thanks for this amazing package.
When using invalidation_trees on Julia 1.8.2, I get the following error
using SnoopCompile
invalidations = @snoopr begin
using AbstractAlgebra, Groebner
R, (x,y,z) = QQ["x","y","z"]
groebner([x*y, x*y*z, y*z])
end;
invalidation_trees(invalidations);
ERROR: MethodError: Cannot `convert` an object of type
Core.MethodInstance to an object of type
Type
Closest candidates are:
convert(::Type{Type}, ::Type) at essentials.jl:214
convert(::Type{T}, ::T) where T at Base.jl:61
Stacktrace:
[1] convert(#unused#::Type{Pair{Type, SnoopCompile.InstanceNode}}, x::Pair{Core.MethodInstance, SnoopCompile.InstanceNode})
@ Base ./pair.jl:58
[2] push!(a::Vector{Pair{Type, SnoopCompile.InstanceNode}}, item::Pair{Core.MethodInstance, SnoopCompile.InstanceNode})
@ Base ./array.jl:1057
[3] invalidation_trees(list::Vector{Any}; exclude_corecompiler::Bool)
@ SnoopCompile ~/.julia/packages/SnoopCompile/aXw90/src/invalidations.jl:443
[4] invalidation_trees(list::Vector{Any})
@ SnoopCompile ~/.julia/packages/SnoopCompile/aXw90/src/invalidations.jl:360
[5] top-level scope
@ REPL[4]:1The same works fine on Julia 1.9.1. Both are run in an environment with the following packages:
julia> import Pkg; Pkg.status()
Status `~/.julia/environments/v1.9/Project.toml`
[c3fe647b] AbstractAlgebra v0.30.9
[0b43b601] Groebner v0.3.6
[aa65fe97] SnoopCompile v2.10.8Metadata
Metadata
Assignees
Labels
No labels