I just upgraded to MacOS Ventura (13.0), and now, when I try to do a basic plot, e.g., with
using Plots
xvals = LinRange(0, 1, 100)
f(x) = x^2
plot(xvals, f.(xvals))
I get the following error:
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: SystemError: opening file "/var/folders/1d/xcpc4m2d0c7_b8jv3tx1xzfr0000gn/T/jl_DGjsRSTitM.svg": No such file or directory
Stacktrace:
[1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
@ Base ./error.jl:176
[2] #systemerror#80
@ ./error.jl:175 [inlined]
[3] systemerror
@ ./error.jl:175 [inlined]
[4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
@ Base ./iostream.jl:293
[5] open
@ ./iostream.jl:275 [inlined]
[6] open(f::Base.var"#387#388"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Base ./io.jl:382
[7] open
@ ./io.jl:381 [inlined]
[8] read
@ ./io.jl:462 [inlined]
[9] _show(io::IOBuffer, #unused#::MIME{Symbol("image/svg+xml")}, plt::Plots.Plot{Plots.GRBackend})
@ Plots ~/.julia/packages/Plots/fw4rv/src/backends/gr.jl:2195
[10] #invokelatest#2
@ ./essentials.jl:729 [inlined]
[11] invokelatest
@ ./essentials.jl:726 [inlined]
[12] show
@ ~/.julia/packages/Plots/fw4rv/src/output.jl:227 [inlined]
[13] __binrepr(m::MIME{Symbol("image/svg+xml")}, x::Plots.Plot{Plots.GRBackend}, context::Nothing)
@ Base.Multimedia ./multimedia.jl:159
[14] display(d::VSCodeServer.InlineDisplay, m::MIME{Symbol("image/svg+xml")}, x::Plots.Plot{Plots.GRBackend})
@ VSCodeServer ./strings/string.jl:0
[15] display(d::VSCodeServer.InlineDisplay, mime::String, x::Any)
@ Base.Multimedia ./multimedia.jl:216
[16] display(d::VSCodeServer.InlineDisplay, x::Plots.Plot{Plots.GRBackend})
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/display.jl:165
[17] display(x::Any)
@ Base.Multimedia ./multimedia.jl:328
[18] #invokelatest#2
@ ./essentials.jl:729 [inlined]
[19] invokelatest
@ ./essentials.jl:726 [inlined]
[20] print_response(errio::IO, response::Any, show_value::Bool, have_color::Bool, specialdisplay::Union{Nothing, AbstractDisplay})
@ REPL /usr/local/Cellar/julia/1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:296
[21] (::REPL.var"#45#46"{REPL.LineEditREPL, Pair{Any, Bool}, Bool, Bool})(io::Any)
@ REPL /usr/local/Cellar/julia/1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:278
[22] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
@ REPL /usr/local/Cellar/julia/1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:521
[23] print_response(repl::REPL.AbstractREPL, response::Any, show_value::Bool, have_color::Bool)
@ REPL /usr/local/Cellar/julia/1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:276
[24] (::REPL.var"#do_respond#66"{Bool, Bool, REPL.var"#77#87"{REPL.LineEditREPL, REPL.REPLHistoryProvider}, REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::Any, ok::Bool)
@ REPL /usr/local/Cellar/julia/1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:857
[25] (::VSCodeServer.var"#98#101"{REPL.var"#do_respond#66"{Bool, Bool, REPL.var"#77#87"{REPL.LineEditREPL, REPL.REPLHistoryProvider}, REPL.LineEditREPL, REPL.LineEdit.Prompt}})(mi::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/repl.jl:122
[26] #invokelatest#2
@ ./essentials.jl:729 [inlined]
[27] invokelatest
@ ./essentials.jl:726 [inlined]
[28] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
@ REPL.LineEdit /usr/local/Cellar/julia/1.8.2/share/julia/stdlib/v1.8/REPL/src/LineEdit.jl:2510
[29] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
@ REPL /usr/local/Cellar/julia/1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:1248
[30] (::REPL.var"#49#54"{REPL.LineEditREPL, REPL.REPLBackendRef})()
@ REPL ./task.jl:484
I have tried removing and adding back Plots
, and adding Plots
in a new environment by itself, but to no avail. Is anybody experiencing the same issue, or know how to fix this? Thanks!