merlin icon indicating copy to clipboard operation
merlin copied to clipboard

Uncaught exception Persistent_env.Error

Open jeongsoolee09 opened this issue 4 years ago • 3 comments

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.

jeongsoolee09 avatar Feb 13 '21 08:02 jeongsoolee09

My bad, I forgot to recompile my project.

jeongsoolee09 avatar Feb 17 '21 02:02 jeongsoolee09

The exception leaking is still a bug, regardless of which state your project was in.

trefis avatar Feb 17 '21 08:02 trefis

I see. To give more information, removing and reinstalling the switch didn't help either.

jeongsoolee09 avatar Feb 17 '21 09:02 jeongsoolee09