merlin
merlin copied to clipboard
merlin crash
Hi.
I am using merlin with the following:
- ocaml 5.3.0
- neovim 0.10.0
I got the following error. It is normally okay with simple source code, but does not work with complex code. Any idea?
Error detected while processing function <SNR>71_NeoVimCallback[35]..function <SNR>71_NeoVimCallback[29]..<lambda>4[1]..<SNR>69_ExitCallback[28].
.<SNR>68_HandleExit[24]..ale_linters#ocaml#merlin#Handle[1]..merlin#ErrorLocList[8]..provider#python3#Call:
line 1:
E5108: Error executing lua Vim:Error invoking 'python_execute' on channel 3 (python3-script-host):
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "/home/kihong/.opam/haechi-5.3.0+flambda/share/merlin/vim/autoload/merlin.py", line 453, in vim_loclist
errors = command("errors")
File "/home/kihong/.opam/haechi-5.3.0+flambda/share/merlin/vim/autoload/merlin.py", line 205, in command
return command2(args)
File "/home/kihong/.opam/haechi-5.3.0+flambda/share/merlin/vim/autoload/merlin.py", line 198, in command2
raise Failure(value)
merlin.Failure: 'Uncaught exception Ocaml_typing.Typemod.Error in initial_env.open_module: Ocaml_typing.Typemod.Error(_, _, _)'
stack traceback:
[C]: at 0x556f42d440f0
Hi @KihongHeo, thanks for your report. We will need more information to understand what is hapening there. Ideally a minimal reproduction case that we could use to investigate.
As a first thing to check, please make sure that you use the latest version of ocaml-lsp-server: 1.22.0 and that your editor does use that version and not another one for a different version of OCaml.