merlin icon indicating copy to clipboard operation
merlin copied to clipboard

Hover of a mutually recursive type can cause a stack overflow

Open Chaarlesss opened this issue 2 months ago • 4 comments

Hi,

Merlin produces a stack overflow which causes Emacs to freeze when hovering the type b on line 1 of the following code:

type a = A | B of int * b
and b = a list

Strangely, the problem does not occur when hovering the type a on line 2.

I am using Merlin 4.14-501 with OCaml 5.1.1.

The end of the stack trace is: stack trace

Chaarlesss avatar Apr 30 '24 14:04 Chaarlesss