Closed pascalw closed 6 years ago
Thanks for letting me know. Can you try again to repro? Also what version of MacOS are you on? (I'm not able to repro this).
I can reproduce this consistently, both with npm and yarn.
If I rename the ocamlmerlin
binary to ocamlmerlin-server
, the binary works (at least outputs help). Though VSCode then still cannot work with it.
I'm on macOS 10.13.6.
Discussing in Discord #general right now, if you happen to be around.
@pascalw can you archive and send me reason-cli installation (from inside node_modules
). You can find me on discord under same nickname.
Hm... I can repro this if I run not via nodenv
shims but directory via reason-cli/bin/ocamlmerlin
. Investigating.
Ok, so the problem is that merlin assumes that ocamlmerlin-server
resides in the same dir as ocamlmerlin
: https://github.com/ocaml/merlin/blob/8bcd99c8e5de984f04966674dcbb1c40c5d89045/src/frontend/ocamlmerlin.c#L496
Simplest repro:
% PATH="$HOME/.nodenv/versions/9.0.0/bin:$PATH" ocamlmerlin -version
The Merlin toolkit version next, for Ocaml 4.02.3
% ~/.nodenv/versions/9.0.0/bin/ocamlmerlin --version
execvp(ocamlmerlin-server): No such file or directory
merlin path: /Users/andreypopp/.nodenv/versions/9.0.0/lib/node_modules/reason-cli/bin/ocamlmerlin-server
socket path: /var/folders/ds/qlqp24pd0kj3kfyfx7v8jmk00000gn/T//<not computed yet>
Thanks!
Should be fixed with reason-cli@3.3.3-macos-1
.
Confirmed!
Hi,
I just installed
npm -g install reason-cli@3.3.3-macos
, but now my VSCode plugin is not working anymore. Digging in a little it seems thatocamlmerlin
is broken:This error is also exposed in VSCode, see https://github.com/reasonml-editor/vscode-reasonml/issues/243.
On the previous version (
3.3.2-macos-betabeta
) the VSCode plugin is working and the binary seems to work: