Skip to content

fix: MethodError in JuliaHub.Experimental.Registries#132

Merged
mortenpi merged 4 commits intomainfrom
mp/fix-parse-reg
Feb 3, 2026
Merged

fix: MethodError in JuliaHub.Experimental.Registries#132
mortenpi merged 4 commits intomainfrom
mp/fix-parse-reg

Conversation

@mortenpi
Copy link
Member

@mortenpi mortenpi commented Feb 3, 2026

Fix the method error when calling JuliaHub.Experimental.registries(auth):

ERROR: MethodError: no method matching _parse_registry(::JSON.Object{String, Any}) The function `_parse_registry` exists, but no method is defined for this combination of argument types.

Closest candidates are:
  _parse_registry(::Dict)
   @ JuliaHub ~/JuliaHub/JuliaHub.jl/src/packages.jl:1

Stacktrace:
 [1] _broadcast_getindex_evalf
   @ ./broadcast.jl:699 [inlined]
 [2] _broadcast_getindex
   @ ./broadcast.jl:672 [inlined]
 [3] _getindex
   @ ./broadcast.jl:620 [inlined]
 [4] getindex
   @ ./broadcast.jl:616 [inlined]
 [5] copy
   @ ./broadcast.jl:933 [inlined]
 [6] materialize(bc::Base.Broadcast.Broadcasted{…})
   @ Base.Broadcast ./broadcast.jl:894
 [7] registries(auth::JuliaHub.Authentication)
   @ JuliaHub ~/JuliaHub/JuliaHub.jl/src/packages.jl:24
 [8] top-level scope
   @ ~/JuliaHub/submit-app.jl:7
Some type information was truncated. Use `show(err)` to see complete types.

Oversight in #121.

Fix the method error when calling JuliaHub.Experimental.registries(auth):

ERROR: MethodError: no method matching _parse_registry(::JSON.Object{String, Any})
The function `_parse_registry` exists, but no method is defined for this combination of argument types.

Closest candidates are:
  _parse_registry(::Dict)
   @ JuliaHub ~/JuliaHub/JuliaHub.jl/src/packages.jl:1

Stacktrace:
 [1] _broadcast_getindex_evalf
   @ ./broadcast.jl:699 [inlined]
 [2] _broadcast_getindex
   @ ./broadcast.jl:672 [inlined]
 [3] _getindex
   @ ./broadcast.jl:620 [inlined]
 [4] getindex
   @ ./broadcast.jl:616 [inlined]
 [5] copy
   @ ./broadcast.jl:933 [inlined]
 [6] materialize(bc::Base.Broadcast.Broadcasted{…})
   @ Base.Broadcast ./broadcast.jl:894
 [7] registries(auth::JuliaHub.Authentication)
   @ JuliaHub ~/JuliaHub/JuliaHub.jl/src/packages.jl:24
 [8] top-level scope
   @ ~/JuliaHub/submit-app.jl:7
Some type information was truncated. Use `show(err)` to see complete types.
pfitzseb
pfitzseb previously approved these changes Feb 3, 2026
@pfitzseb pfitzseb enabled auto-merge (squash) February 3, 2026 13:38
@mortenpi mortenpi disabled auto-merge February 3, 2026 13:49
@mortenpi mortenpi merged commit 9232081 into main Feb 3, 2026
14 checks passed
@mortenpi mortenpi deleted the mp/fix-parse-reg branch February 3, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants