ocaml / merlin

Context sensitive completion for OCaml in Vim and Emacs
https://ocaml.github.io/merlin/
MIT License
1.57k stars 233 forks source link

'invalid arguments' from Python on startup #166

Closed travisbrady closed 10 years ago

travisbrady commented 10 years ago

I keep getting the error below when trying to open a .ml file in vim.

I installed using the instructions here: https://github.com/the-lambda-church/merlin/wiki/vim-from-scratch but am stuck.

I notice that ~/.opam/system/share/ocamlmerlin/vimbufsync doesn't exist. Though I do have ~/.opam/system/share/ocamlmerlin/vim

This is on Mac OS 10.9.1 with opam installed yesterday via homebrew.

Error detected while processing function merlin#LoadProject:
line    1:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/travisbrady/.vim/bundle/merlin/vim/merlin/autoload/merlin.py", line 76, in send_command
    raise Failure(content)
merlin.Failure: u'invalid arguments'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/travisbrady/.vim/bundle/merlin/vim/merlin/autoload/merlin.py", line 76, in send_command
    raise Failure(content)
merlin.Failure: u'invalid arguments'

System Python Info:

Python 2.7.5 (default, Aug 25 2013, 00:04:04)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
travisbrady commented 10 years ago

Just noticed my .vimrc has two old calls to Bundle, specifically "Bundle 'def-lkb/merlin'". Removing those has solved my problem. Sorry, false alarm.