Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory, merlin #17

Open
GeertVL-zz opened this issue Sep 28, 2017 · 4 comments
Open

No such file or directory, merlin #17

GeertVL-zz opened this issue Sep 28, 2017 · 4 comments

Comments

@GeertVL-zz
Copy link

GeertVL-zz commented Sep 28, 2017

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

@tejasbubane
Copy link

tejasbubane commented Oct 30, 2017

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.

@wpcarro
Copy link
Contributor

wpcarro commented Jan 10, 2018

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.

@wpcarro
Copy link
Contributor

wpcarro commented Jan 10, 2018

@tejasbubane I also would expect exec-path to be the same as $PATH if the user is using the package, exec-path-from-shell.

@wpcarro
Copy link
Contributor

wpcarro commented Jan 10, 2018

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants