Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merlin crash #1887

Open
KihongHeo opened this issue Jan 15, 2025 · 1 comment
Open

merlin crash #1887

KihongHeo opened this issue Jan 15, 2025 · 1 comment

Comments

@KihongHeo
Copy link

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
@voodoos
Copy link
Collaborator

voodoos commented Jan 15, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants