Stream: helpdesk (published)

Topic: How to register error hint for `StackOverflowError`?


view this post on Zulip Júlio Hoffimann (Aug 25 2026 at 12:40):

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