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

Deprecation of DiscreteSurface is broken #4423

Open
3 tasks done
haakon-e opened this issue Sep 29, 2024 · 3 comments
Open
3 tasks done

Deprecation of DiscreteSurface is broken #4423

haakon-e opened this issue Sep 29, 2024 · 3 comments
Labels
bug Makie Backend independent issues (Makie core)

Comments

@haakon-e
Copy link
Contributor

On Makie v0.21.11 I can define methods that dispatch on Makie.DiscreteSurface

julia> f(::Makie.DiscreteSurface) = 1
f (generic function with 1 method)

however on Makie v0.21.12 I get the following error:

julia> f(::Makie.DiscreteSurface) = 1
ERROR: ArgumentError: invalid type for argument number 1 in method definition for f at REPL[9]:1
Stacktrace:
 [1] top-level scope
   @ REPL[9]:1

I suspect this comes from #4333, which deletes

Base.@deprecate_binding DiscreteSurface CellGrid true
Base.@deprecate_binding ContinuousSurface VertexGrid true

and replaces it with
function DiscreteSurface(args...; kwargs...)
@warn "Makie.DiscreteSurface() is deprecated, use Makie.CellGrid() instead" maxlog=1
CellGrid(args...; kwargs...)
end
function ContinuousSurface(args...; kwargs...)
@warn "Makie.ContinuousSurface() is deprecated, use Makie.VertexGrid() instead" maxlog=1
VertexGrid(args...; kwargs...)
end

so that DiscreteSurface is no longer recognized as a DataType, but instead is a Function.


  • what version of Makie are you running? (]st -m Makie) 0.21.12
  • can you reproduce the bug with a fresh environment ? (]activate --temp; add Makie)
  • What platform + GPU are you on? Mac M1
@haakon-e haakon-e added the bug label Sep 29, 2024
@SimonDanisch
Copy link
Member

Hm, Yeah I guess that's the disadvantage of that approach.
We could make it a type as well, or say this has been breaking for multiple versions, so it's fine to leave it broken.

@haakon-e
Copy link
Contributor Author

[...] or say this has been breaking for multiple versions, so it's fine to leave it broken.

What do you mean by this? 0.21.12 was released two days ago, so "breaking for multiple versions" doesn't seem accurate; or do you mean it has been deprecated for multiple versions?

@ffreyer
Copy link
Collaborator

ffreyer commented Sep 30, 2024

DiscreteSurface has been deprecated for ~10 months now, since version 0.20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Makie Backend independent issues (Makie core)
Projects
None yet
Development

No branches or pull requests

3 participants