[PSA] Custom default backends for Plots.jl broken on julia 1.10

Julia 1.10 turned loading packages that are not direct dependencies at precompile time into an error.
Historically Plots.jl relied on some sketchy code loading practices to make the multiple backend story workable. That means you can’t change the default backend on julia 1.10 and I don’t see a way to make that work in a non-breaking way. don't precompile custom default backend by BeastyBlacksmith · Pull Request #4870 · JuliaPlots/Plots.jl · GitHub is going to remove that feature and declare incompatibility with InspectDR.jl, since that is also affected by this. This will get a minor release then.
Now that package extensions are out v2 is in the making to make leverage of that and abolish the idea of a default backend entirely, but no timeline on that.

1 Like

Could you please elaborate a bit on the impact of this. Thanks.

Currently, if you set a different default backend via Plots.set_default_backend than GR, Plots will error when trying to precompile on julia 1.10 and you have to delete the LocalPreferences.toml file to recover from that.

1 Like