- 
                Notifications
    
You must be signed in to change notification settings  - Fork 10
 
Open
Description
julia> dadada(a::Int) = produce(a)
dadada (generic function with 1 method)
julia> Libtask.TapedTask(nothing, dadada)
ERROR: BoundsError: attempt to access 0-element Vector{Any} at index [1]
Stacktrace:
 [1] throw_boundserror(A::Vector{Any}, I::Tuple{Int64})
   @ Base ./essentials.jl:14
 [2] getindex
   @ ./essentials.jl:916 [inlined]
 [3] build_callable(sig::Type{Tuple{typeof(dadada)}})
   @ Libtask ~/.julia/packages/Libtask/rUqXa/src/copyable_task.jl:79
 [4] TapedTask(taped_globals::Nothing, fargs::Function; kwargs::@Kwargs{})
   @ Libtask ~/.julia/packages/Libtask/rUqXa/src/copyable_task.jl:273
 [5] TapedTask(taped_globals::Nothing, fargs::Function)
   @ Libtask ~/.julia/packages/Libtask/rUqXa/src/copyable_task.jl:270
 [6] top-level scope
   @ REPL[12]:1
julia> Libtask.TapedTask(nothing, dadada, 0.1)
ERROR: BoundsError: attempt to access 0-element Vector{Any} at index [1]
Stacktrace:
 [1] throw_boundserror(A::Vector{Any}, I::Tuple{Int64})
   @ Base ./essentials.jl:14
 [2] getindex
   @ ./essentials.jl:916 [inlined]
 [3] build_callable(sig::Type{Tuple{typeof(dadada), Float64}})
   @ Libtask ~/.julia/packages/Libtask/rUqXa/src/copyable_task.jl:79
 [4] TapedTask(::Nothing, ::Function, ::Vararg{Any}; kwargs::@Kwargs{})
   @ Libtask ~/.julia/packages/Libtask/rUqXa/src/copyable_task.jl:273
 [5] TapedTask(::Nothing, ::Function, ::Vararg{Any})
   @ Libtask ~/.julia/packages/Libtask/rUqXa/src/copyable_task.jl:270
 [6] top-level scope
   @ REPL[13]:1That's quite mysterious looking, when all I did is I gave my taped task function the wrong number or wrong types of arguments.
Metadata
Metadata
Assignees
Labels
No labels