Skip to content

Error with VectorOfArray and Juno display #70

Description

@gabrielgellner

Something seems to have changed with how it VectorOfArray interact with the Juno display system. If you do:

using RecursiveArrayTools

# This throws the error
x1 = VectorOfArray([rand(10) for i = 1:2])
# This does not
x1;

# This works
x1[1]

You get the following error in Juno:

UndefVarError: Atom not defined
defaultrepr(::VectorOfArray{Float64,2,Array{Array{Float64,1},1}}, ::Bool) at types.jl:79
defaultrepr at types.jl:79 [inlined]
render(::Juno.Inline, ::VectorOfArray{Float64,2,Array{Array{Float64,1},1}}) at init.jl:5
render(::Juno.Inline, ::Juno.Copyable) at view.jl:49
render at display.jl:19 [inlined]
displayandrender(::VectorOfArray{Float64,2,Array{Array{Float64,1},1}}) at showdisplay.jl:127
(::getfield(Atom, Symbol("##119#124")){String})() at eval.jl:102
macro expansion at essentials.jl:742 [inlined]
(::getfield(Atom, Symbol("##115#120")))(::Dict{String,Any}) at eval.jl:86
handlemsg(::Dict{String,Any}, ::Dict{String,Any}) at comm.jl:164
(::getfield(Atom, Symbol("##19#21")){Array{Any,1}})() at task.jl:259

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions