I am trying to use Base.Experimental.register_error_hint with StackOverflowError but it hangs:
Base.Experimental.register_error_hint(StackOverflowError) do io, exc, argtypes, kwargs
if exc.f == intersection
print(
io,
"""
Are you sure that an intersection method is implemented for the given pair of geometries?
"""
)
printstyled(
io,
"""
julia> methods(intersection)
""",
color=:cyan,
bold=true
)
end
end
It works just fine with MethodError.
Last updated: Aug 30 2026 at 10:01 UTC