Closed MSoegtropIMC closed 5 years ago
P.S.: If this helps, I can provide a set of CMD and bash scripts which exactly reproduce my environment from scratch, including setting up cygwin, opam and compiling Merlin for MinGW.
I just encountered the same problem. Same Windows 10.
@MSoegtropIMC @cqfllp This sounds related to #236
Try setting reason.path.ocamlmerlin
to "ocamlmerlin-server"
Thanks, indeed this works!
P.S.: There is one more caveat: I found that sometimes VSCode leaves hidden processes after closing and if it is started from the command line, it might pick up this hidden process rather than creating a new one. This has the effect that VSCode has the wrong environment, notably possibly a wrong path without ocamlmerlin-server. In case you have unreproducible errors, open a terminal from VSCode and inspect that PATH. If the PATH is wrong, close VSCode, check that there are no VSCode processes left (or kill them) and restart.
I am having the same (or very similar errors) as mentioned in #142 and #247, but not just on save but when I load an OCaml file. That is for me the VSCode plugin doesn't work at all. Some notes on my environment:
opam install merlin
andopam install ocp-indent
npm install -g ocaml-language-server
nor do I have nodejs installed) since I didn't find anything in the installation instructions which recommends this (I just found the reference in some comments on #247 and #142).The error message I get (within 1s after loading any OCaml file):