merlin
merlin copied to clipboard
Uncaught exception Persistent_env.Error
I am on Emacs 27.1 configured with the latest commit of Spacemacs. I am using merlin with the OCaml layer (https://develop.spacemacs.org/layers/+lang/ocaml/README.html). My opam switch is ocaml-variants.4.11.1+flambda.
Today, I observed that merlin's type signature lookup and error reporting features are no longer working. Instead, Emacs emits the error:
merlin-mode failure: Uncaught exception Persistent_env.Error in initial_env.open_module: Persistent_env.Error(_)
I tried uninstalling and reinstalling merlin with opam, but to no avail.
My bad, I forgot to recompile my project.
The exception leaking is still a bug, regardless of which state your project was in.
I see. To give more information, removing and reinstalling the switch didn't help either.