ale icon indicating copy to clipboard operation
ale copied to clipboard

Error invoking 'python_execute' on channel 3 [ALE with Merlin]

Open amw1lson opened this issue 3 years ago • 2 comments

Information

VIM version

NVIM v0.6.1 Build type: Release

Arch linux

What went wrong

I've installed Merlin and configured everything properly, Merlin is working properly on its own as well as with Syntastic. When I use Merlin with ALE, everything ostensibly works perfectly, except for when I close a file I get this error message:

Error detected while processing function <SNR>80_NeoVimCallback[29]..4[1]..<SNR>78_ExitCallback[28]..<SNR>77_HandleExit[24]..ale_linters#ocaml#merlin#Handle[1]..merlin#ErrorLocList[8]..provider#python3#Call: line 18: Error invoking 'python_execute' on channel 3 (python3-script-host):^@Invalid channel: 3%

Reproducing the bug

Open and close an OCaml file with merlin installed.

:ALEInfo

in ALEInfo everything is seemingly fine as well: Command History: (executable check - success) ocamlmerlin (finished - exit code 0) ['/bin/zsh', '-c', 'true < ''/tmp/nvimEy5QVd/1/touch.ml'''] <<<NO OUTPUT RETURNED>>>

amw1lson avatar Mar 06 '22 05:03 amw1lson

Merlin version for reproduction: 4.4-412 Opam: 2.0.9

amw1lson avatar Mar 06 '22 05:03 amw1lson

Merlin error handlers use a function merlin#ErrorLocList() that is not part of ALE. This function is part of ocaml/merlin vim plugin:

  • https://github.com/ocaml/merlin/blob/master/vim/merlin/autoload/merlin.vim#L495

The error you see happens there so I would recommend this issue is raised on that repo.

hsanson avatar Mar 10 '22 13:03 hsanson