Open mdesharnais opened 6 years ago
Same issue here, with a much simpler .vimrc:
filetype plugin indent on
syntax on
set number
set nocompatible
set wildmenu
set wrapscan
set tabstop=4
set expandtab
set shiftwidth=4
set breakindent
set smartindent
set nojoinspaces
My exact log:
Error detected while processing function merlin#Register[133]..merlin#LoadProject:
line 2:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/share/vim/vimfiles/autoload/merlin.py", line 730, in setup_merlin
result = command("check-configuration")
File "/usr/share/vim/vimfiles/autoload/merlin.py", line 188, in command
return command2(args)
File "/usr/share/vim/vimfiles/autoload/merlin.py", line 181, in command2
raise Failure(value)
merlin.Failure: u'abnormal termination'
I don't know if you managed to resolve your issue but this could come from the fact that you're not using the required OCaml version (version 4.02.3 at the time of writing).
I’m using 4.06.0
. But following the doc you’ve pointed, I’ve got interesting results running ocamlmerlin -version
:
Fatal error: exception Failure("Config file not found - neither /etc/findlib.conf nor the directory /etc/findlib.conf.d")
Prefixing with OCAMLFIND_CONF=/dev/null
as advised in https://github.com/ocaml/merlin/issues/551 returned:
The Merlin toolkit version 3.0.5, for Ocaml 4.06.0
As a matter of fact, prepending this var to running vim works. So looks that was the issue, not sure why and what would be the best way to deal with it.
Apparently this is because there is no ocaml-findlib
on my system.
After installing merlin:
I configured vim with:
And get this error message when opening a file with vim:
My
.vimrc
is: