Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MethodError with invalidation_trees on Julia 1.8.2, works on 1.9.1 #367

Open
sumiya11 opened this issue Jun 21, 2023 · 0 comments
Open

MethodError with invalidation_trees on Julia 1.8.2, works on 1.9.1 #367

sumiya11 opened this issue Jun 21, 2023 · 0 comments

Comments

@sumiya11
Copy link

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]:1

The 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.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant