reason-mode
reason-mode copied to clipboard
No such file or directory, merlin
I have set the ELisp in a proper directory and did a load-path and added the rest of the code to my .emacs file on my Mac.
When I reload Emacs I get
File error: Cannot open load file, No such file or directory, merlin
What am I missing?
ps.: When I do
which ocamlmerlin
I get
/Users/geert/.nvm/versions/node/v8.2.1/bin/ocamlmerlin
Emacs exec-path
is different from shell's $PATH
.
Can you eval (shell-cmd "which ocamlmerlin")
in an elisp buffer and check if the correct path is being picked up by emacs?
You can also check current value of exec-path
in emacs: https://www.gnu.org/software/emacs/manual/html_node/eintr/See-variable-current-value.html and see if the node bin path is there.
Hi I have the same error... when I run (shell-cmd "which ocamlmerlin")
, I get:
~/.opam/4.05.0/bin/ocamlmerlin
This seems correct to me. Also ~/.opam/4.05.0/bin
is in my exec-path
variable as well.
As a side note, I have tried installing this using Quelpa and now I'm trying to install it manually. I haven't been able to get either working.
@tejasbubane I also would expect exec-path
to be the same as $PATH
if the user is using the package, exec-path-from-shell
.
@tejasbubane It be helpful to point out that I have two versions of ocamlmerlin
installed on my computer. One presumably installed through opam and another presumably installed using npm install -g
.
I see in the Reason Getting Started documentation that it is preferable to install everything through npm
, but I think I installed merlin using opam
as a desperate measure to attempt to get my editor configuration working.