Makie.jl
Makie.jl copied to clipboard
Incorrect keyword arguments for `axis` argument don't show any suggestions
- [x] what version of Makie are you running? (
]st -m Makie
) - [x] can you reproduce the bug with a fresh environment ? (
]activate --temp; add Makie
)
julia> using CairoMakie
(jl_Y5LoAd) pkg> st -m Makie
Status `C:\Users\danjv\AppData\Local\Temp\jl_Y5LoAd\Manifest.toml`
[ee78f7c6] Makie v0.21.11
julia> scatter([1.0], [1.0], axis = (; blahblah = "1.0")) # should show suggestions
ERROR: MethodError: no method matching initialize_block!(::Axis; blahblah::String)
Closest candidates are:
initialize_block!(::Axis; palette) got unsupported keyword argument "blahblah"
@ Makie C:\Users\danjv\.julia\packages\Makie\gG38B\src\makielayout\blocks\axis.jl:150
initialize_block!(::Textbox) got unsupported keyword argument "blahblah"
@ Makie C:\Users\danjv\.julia\packages\Makie\gG38B\src\makielayout\blocks\textbox.jl:4
initialize_block!(::Colorbar) got unsupported keyword argument "blahblah"
@ Makie C:\Users\danjv\.julia\packages\Makie\gG38B\src\makielayout\blocks\colorbar.jl:115
...
Stacktrace:
[1] kwerr(::@NamedTuple{blahblah::String}, ::Function, ::Axis)
@ Base .\error.jl:165
[2] _block(T::Type{…}, fig_or_scene::Figure, args::Vector{…}, kwdict::Dict{…}, bbox::Nothing; kwdict_complete::Bool)
@ Makie C:\Users\danjv\.julia\packages\Makie\gG38B\src\makielayout\blocks.jl:371
[3] _block(T::Type{Axis}, fig_or_scene::Figure, args::Vector{Any}, kwdict::Dict{Symbol, Any}, bbox::Nothing)
@ Makie C:\Users\danjv\.julia\packages\Makie\gG38B\src\makielayout\blocks.jl:291
[4] create_axis_for_plot(figure::Figure, plot::Scatter{Tuple{Vector{Point{2, Float64}}}}, attributes::Dict{Symbol, Any})
@ Makie C:\Users\danjv\.julia\packages\Makie\gG38B\src\figureplotting.jl:107
[5] create_axis_like(plot::Scatter{Tuple{Vector{Point{2, Float64}}}}, attributes::Dict{Symbol, Any}, ::Nothing)
@ Makie C:\Users\danjv\.julia\packages\Makie\gG38B\src\figureplotting.jl:199
[6] _create_plot(::Function, ::Dict{Symbol, Any}, ::Vector{Float64}, ::Vararg{Vector{Float64}})
@ Makie C:\Users\danjv\.julia\packages\Makie\gG38B\src\figureplotting.jl:317
[7] scatter(::Vector{Float64}, ::Vararg{Vector{Float64}}; kw::@Kwargs{axis::@NamedTuple{blahblah::String}})
@ MakieCore C:\Users\danjv\.julia\packages\MakieCore\rTINf\src\recipes.jl:449
[8] top-level scope
@ REPL[20]:1
Some type information was truncated. Use `show(err)` to see complete types.
Is it possible to allow suggestions for allowed keyword arguments to be shown here?