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

SVector of Vector throws error #458

Closed
dlfivefifty opened this issue Sep 19, 2020 · 6 comments
Closed

SVector of Vector throws error #458

dlfivefifty opened this issue Sep 19, 2020 · 6 comments
Labels
backend Concerning the julia server and runtime bug Something isn't working

Comments

@dlfivefifty
Copy link

If I have a cell with SVector(([1,2],)) it throws the following error:

Failed to show value:
setindex!() with non-isbitstype eltype is not supported by StaticArrays. Consider using SizedArray.
error(::String)@error.jl:33
setindex!@MArray.jl:99[inlined]
copyto!(::StaticArrays.MArray{Tuple{1},Tuple{Int64,Array{Int64,1}},1,1}, ::Base.Iterators.Zip{Tuple{StaticArrays.SOneTo{1},StaticArrays.SArray{Tuple{1},Array{Int64,1},1,1}}})@abstractarray.jl:736
_collect(::UnitRange{Int64}, ::Base.Iterators.Zip{Tuple{StaticArrays.SOneTo{1},StaticArrays.SArray{Tuple{1},Array{Int64,1},1,1}}}, ::Base.HasEltype, ::Base.HasShape{1})@array.jl:630
collect(::Base.Iterators.Zip{Tuple{StaticArrays.SOneTo{1},StaticArrays.SArray{Tuple{1},Array{Int64,1},1,1}}})@array.jl:624
broadcastable(::Base.Iterators.Zip{Tuple{StaticArrays.SOneTo{1},StaticArrays.SArray{Tuple{1},Array{Int64,1},1,1}}})@broadcast.jl:682
broadcasted@broadcast.jl:1261[inlined]
show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::MIME{Symbol("application/vnd.pluto.tree+xml")}, ::StaticArrays.SArray{Tuple{1},Array{Int64,1},1,1})@PlutoRunner.jl:399
#show_richest#16(::Bool, ::typeof(Main.PlutoRunner.show_richest), ::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Any)@PlutoRunner.jl:357
show_richest(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Any)@PlutoRunner.jl:307
#sprint_withreturned#15(::IOContext{Base.PipeEndpoint}, ::Int64, ::typeof(Main.PlutoRunner.sprint_withreturned), ::Function, ::StaticArrays.SArray{Tuple{1},Array{Int64,1},1,1})@PlutoRunner.jl:279
format_output(::Any)@PlutoRunner.jl:219
formatted_result_of(::Base.UUID, ::Bool)@PlutoRunner.jl:41
top-level scope@none:1

This is not an issue in the REPL.

@fonsp fonsp added bug Something isn't working backend Concerning the julia server and runtime labels Sep 20, 2020
@Moelf
Copy link
Contributor

Moelf commented Sep 23, 2020

looks like this has been fixed by 53e2f3c
REPL:

1-element SArray{Tuple{1},Array{Int64,1},1,1} with indices SOneTo(1):

Pluto:

StaticArrays.SArray{Tuple{1},Array{Int64,1},1,1}: 

I personally think we should re-use summary as much as possible, for a more consistent "header" compare to REPL. In this case StaticArrays. looks a bit too much

@fonsp
Copy link
Owner

fonsp commented Sep 24, 2020

I think both are equally bad 💁

@fonsp fonsp closed this as completed Sep 24, 2020
@OliverEvans96
Copy link

This is still an issue in v0.12.10

@Moelf
Copy link
Contributor

Moelf commented Nov 18, 2020

looks like a regression

@fonsp
Copy link
Owner

fonsp commented Nov 27, 2020

Caused by this bug: JuliaArrays/StaticArrays.jl#855

@fonsp fonsp closed this as completed in b9a729f Nov 27, 2020
@fonsp
Copy link
Owner

fonsp commented Nov 27, 2020

Fixed using a workaround: #725

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Concerning the julia server and runtime bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants