-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Description
Some change between Julia 1.11.4 and 1.11.5 broke display of some errors on the REPL when originating from within a display
call. Seems to also be present in 1.12-rc1 and nightly.
(Also scrubbing REPL frames from backtraces seems to be broken in this case? Unclear if related, will follow up.)
In Julia 1.11.5:
julia> using Plots
julia> plot(1:11, rand(10))
Error showing value of type Plots.Plot{Plots.GRBackend}:
SYSTEM (REPL): showing an error caused an error
ERROR: BoundsError: attempt to access 10-element Vector{Float64} at index [1:11]
Stacktrace:
[1] throw_boundserror(A::Vector{Float64}, I::Tuple{UnitRange{Int64}})
@ Base .\essentials.jl:14
[2] checkbounds
@ .\abstractarray.jl:699 [inlined]
[3] getindex(A::Vector{Float64}, I::UnitRange{Int64})
@ Base .\array.jl:936
[4] gr_draw_segments(series::Plots.Series, x::UnitRange{Int64}, y::Vector{Float64}, z::Nothing, fillrange::Nothing, clims::Tuple{Float64, Float64})
@ Plots D:\.julia\packages\Plots\gYkEG\src\backends\gr.jl:1858
...
In Julia 1.11.4:
julia> using Plots
julia> plot(1:11, rand(10))
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: BoundsError: attempt to access 10-element Vector{Float64} at index [1:11]
Stacktrace:
[1] throw_boundserror(A::Vector{Float64}, I::Tuple{UnitRange{Int64}})
@ Base .\essentials.jl:14
[2] checkbounds
@ .\abstractarray.jl:699 [inlined]
[3] getindex(A::Vector{Float64}, I::UnitRange{Int64})
@ Base .\array.jl:936
[4] gr_draw_segments(series::Plots.Series, x::UnitRange{Int64}, y::Vector{Float64}, z::Nothing, fillrange::Nothing, clims::Tuple{Float64, Float64})
@ Plots D:\.julia\packages\Plots\gYkEG\src\backends\gr.jl:1858
...
Metadata
Metadata
Assignees
Labels
No labels