JuliaPlots / Plots.jl

Powerful convenience for Julia visualizations and data analysis
https://docs.juliaplots.org
Other
1.84k stars 355 forks source link

[BUG] Undefined nonuniformpolarcellarray #3737

Closed juliohm closed 3 years ago

juliohm commented 3 years ago

I am just trying to build my docs and Plots.jl is breaking again 😭 even though I fixed the minor version in my Project.toml. Is Plots.jl following semver?

Here is the new error:

ERROR: LoadError: UndefVarError: nonuniformpolarcellarray not defined
Stacktrace:
  [1] gr_draw_heatmap(series::Plots.Series, x::Vector{Float64}, y::Vector{Float64}, z::Matrix{Float64}, clims::Tuple{Float64, Float64})
    @ Plots ~/.julia/packages/Plots/g581z/src/backends/gr.jl:1864
  [2] gr_add_series(sp::Plots.Subplot{Plots.GRBackend}, series::Plots.Series)
    @ Plots ~/.julia/packages/Plots/g581z/src/backends/gr.jl:1661
  [3] gr_display(sp::Plots.Subplot{Plots.GRBackend}, w::Measures.AbsoluteLength, h::Measures.AbsoluteLength, viewport_canvas::Vector{Float64})
    @ Plots ~/.julia/packages/Plots/g581z/src/backends/gr.jl:955
  [4] gr_display(plt::Plots.Plot{Plots.GRBackend}, fmt::String)
    @ Plots ~/.julia/packages/Plots/g581z/src/backends/gr.jl:646
  [5] _show(io::IOContext{IOBuffer}, #unused#::MIME{Symbol("image/svg+xml")}, plt::Plots.Plot{Plots.GRBackend})
    @ Plots ~/.julia/packages/Plots/g581z/src/backends/gr.jl:1893
  [6] show(io::IOContext{IOBuffer}, m::MIME{Symbol("image/svg+xml")}, plt::Plots.Plot{Plots.GRBackend})
    @ Plots ~/.julia/packages/Plots/g581z/src/output.jl:215
  [7] _show(io::IOContext{IOBuffer}, #unused#::MIME{Symbol("text/html")}, plt::Plots.Plot{Plots.GRBackend})
    @ Plots ~/.julia/packages/Plots/g581z/src/output.jl:180
  [8] show(io::IOContext{IOBuffer}, m::MIME{Symbol("text/html")}, plt::Plots.Plot{Plots.GRBackend})
    @ Plots ~/.julia/packages/Plots/g581z/src/output.jl:215
  [9] __binrepr
    @ ./multimedia.jl:161 [inlined]
 [10] _textrepr
    @ ./multimedia.jl:151 [inlined]
 [11] stringmime(m::MIME{Symbol("text/html")}, x::Plots.Plot{Plots.GRBackend}; context::Pair{Symbol, Bool})
    @ Base64 /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Base64/src/Base64.jl:43
 [12] display_dict(x::Plots.Plot{Plots.GRBackend}; context::Pair{Symbol, Bool})
    @ Documenter.Utilities ~/.julia/packages/Documenter/R2HVS/src/Utilities/Utilities.jl:666
 [13] invokelatest(f::Any, args::Any; kwargs::Base.Iterators.Pairs{Symbol, Pair{Symbol, Bool}, Tuple{Symbol}, NamedTuple{(:context,), Tuple{Pair{Symbol, Bool}}}})
    @ Base ./essentials.jl:710
 [14] runner(#unused#::Type{Documenter.Expanders.ExampleBlocks}, x::Markdown.Code, page::Documenter.Documents.Page, doc::Documenter.Documents.Document)
    @ Documenter.Expanders ~/.julia/packages/Documenter/R2HVS/src/Expanders.jl:610
 [15] dispatch(::Type{Documenter.Expanders.ExpanderPipeline}, ::Markdown.Code, ::Vararg{Any, N} where N)
    @ Documenter.Utilities.Selectors ~/.julia/packages/Documenter/R2HVS/src/Utilities/Selectors.jl:170
 [16] expand(doc::Documenter.Documents.Document)
    @ Documenter.Expanders ~/.julia/packages/Documenter/R2HVS/src/Expanders.jl:42
 [17] runner(#unused#::Type{Documenter.Builder.ExpandTemplates}, doc::Documenter.Documents.Document)
    @ Documenter.Builder ~/.julia/packages/Documenter/R2HVS/src/Builder.jl:227
 [18] dispatch(#unused#::Type{Documenter.Builder.DocumentPipeline}, x::Documenter.Documents.Document)
    @ Documenter.Utilities.Selectors ~/.julia/packages/Documenter/R2HVS/src/Utilities/Selectors.jl:170
 [19] #2
    @ ~/.julia/packages/Documenter/R2HVS/src/Documenter.jl:257 [inlined]
 [20] cd(f::Documenter.var"#2#3"{Documenter.Documents.Document}, dir::String)
    @ Base.Filesystem ./file.jl:106
 [21] #makedocs#1
    @ ~/.julia/packages/Documenter/R2HVS/src/Documenter.jl:256 [inlined]
 [22] top-level scope
    @ ~/.julia/dev/GeoStats/docs/make.jl:12
 [23] include(fname::String)
    @ Base.MainInclude ./client.jl:444
 [24] top-level scope
    @ REPL[4]:1
in expression starting at /home/juliohm/.julia/dev/GeoStats/docs/make.jl:12

It can be reproduced by trying to build the GeoStats.jl docs on the master branch, which I didn't touch in a while.

juliohm commented 3 years ago

@jheinen perhaps this error is coming from a recent GR update?

t-bltg commented 3 years ago

What is your Plots version in ] st -m ?

nonuniformpolarcellarray is still exported by GR.jl

juliohm commented 3 years ago

The Plots.jl version is fixed in the GeoStats/docs/Project.toml for a while now at v1.15.

juliohm commented 3 years ago

Updated the version of Plots.jl once again to fix the bug. It is really hard to maintain any project without semver guarantees.

t-bltg commented 3 years ago

Why not pin the GR version ?

juliohm commented 3 years ago

Will probably do it next time as well, not sure it will guarantee anything if semver is not being strictly followed though.

t-bltg commented 3 years ago

But Plots.jl is following semver e.g. here, restricting compatible versions: it's just maybe too broad.

Just add a [compat] section in https://github.com/JuliaEarth/GeoStats.jl/blob/master/docs/Project.toml in order to restrict the GR and/or Plots versions.