ocaml / merlin

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

Fails on Spacemacs + Windows + Cygwin #721

Open mindbound opened 7 years ago

mindbound commented 7 years ago

I have all of the following:

Emacs is being run via C:\cygwin\usr\local\bin\ocaml-env-win.exe -- "C:\\emacs\bin\\emacsclientw.exe" --alternate-editor="C:\\emacs\\bin\\runemacs.exe" -c in order to have all variables automatically set up. When opening an .ml file (either new or existing) and trying to write in it, each key press that invokes merlin fails (writes the character but throws an error in the messages buffer and fails to actually call merlin functionality) with

Company: An error occurred in auto-begin Company: backend merlin-company-backend error "merlin: error (end-of-file) trying to parse answer: " with args (candidates le)

where le is the current word I'm writing. Reinstalling any or all of the above components has no effect on the issue. Additionally, merlin works normally when using Atom or Visual Studio Code with the appropriate extensions.

let-def commented 7 years ago

Can you try with the git version of merlin (opam pin add merlin --dev-repo)? I am not sure if this will work with fdopen repository, in any case a new release of merlin for windows is long overdue, I will try to make it soon. Sorry for that.

mindbound commented 7 years ago

I can upgrade merlin to the git version just fine but it still fails with the same error.