srs
May 15, 2025, 9:57am
1
Hey guys, registrator isn’t working. Is something down here? I tried both the web app and the github app and they both give me “Unexpected error in registration” (very helpful)
The repo is this one, but it shouldn’t matter of course. GitHub - sschuldenzucker/ParametricAdaptiveSampling.jl: Automatic adaptive sampling of one-dimensional parametric curves in Julia, mainly for plotting
1 Like
This error usually indicates a problem with the package. Trying to register it locally with LocalRegistry is more informative.
julia> using LocalRegistry
julia> create_registry("test", "")
[ Info: Created registry in directory /home/gunnar/.julia/registries/test
"/home/gunnar/.julia/registries/test"
julia> register(registry = "test", commit = false)
[...]
ERROR: invalid version specifier: "1.11-1"
[...]
(@v1.10) pkg> registry rm test
Removing registry `test` from ~/.julia/registries/test
5 Likes
goerz
May 15, 2025, 10:22am
3
It would definitely be nice if Registrator forwarded that error message to the user.
Is this an issue for RegistryTools ? Maybe more details should be extracted from any thrown exception, in
# push -f branch to remote
if push
@debug("push -f branch to remote")
run(pipeline(`$git remote set-url --push origin $registry_fork`))
run(pipeline(`$git push -f -u origin $branch`; stdout=devnull))
else
@debug("skipping git push")
end
catch ex
@error("Unexpected error while registering", stacktrace=get_backtrace(ex))
add!(status, :unexpected_registration_error)
@debug("cleaning up possibly inconsistent registry", registry_path=showsafe(registry_path))
rm(registry_path; recursive=true, force=true)
end
return set_metadata!(regbr, status)
end
"""
find_registered_version(pkg, registry_path)
Yes, this is in the RegistryTools domains. A PR is considerably more likely to be effective than an issue though.
srs
May 15, 2025, 11:35am
5
OMG it’s working, thanks a lot!
Yeah would be really nice if that error was shown to the user.