prl-julia / julia-type-stability

10 stars 0 forks source link

Attempt to access 0-element Array inside is_stable_call #7

Open ulysses4ever opened 3 years ago

ulysses4ever commented 3 years ago

I observe it on the Pluto package:

[ Info: [Stability] About to start analysis
ERROR: BoundsError: attempt to access 0-element Array{Any,1} at index [1]
Stacktrace:
 [1] getindex at ./array.jl:809 [inlined]
 [2] is_stable_call(::Any, ::Any) at /home/artem/stability/repo/Stability/src/Stability.jl:48
 [3] is_stable_instance(::Core.MethodInstance) at /home/artem/stability/repo/Stability/src/Stability.jl:88
 [4] module_stats(::Module) at /home/artem/stability/repo/Stability/src/Stability.jl:144
 [5] top-level scope at none:23
ulysses4ever commented 3 years ago

Generic mitigation for this kind of issue (@code_typed produces empty result) is in 709bbee.