purcell / emacs-dune-format

Reformat dune files from within Emacs
5 stars 1 forks source link

Searching for program: No such file or directory, dune #1

Open vyorkin opened 2 years ago

vyorkin commented 2 years ago

Hi! Can you please tell where the reformatter is searching for the dune executable?

 △ lla ~/bin G dune
lrwxr-xr-x  37 vyorkin 30 Sep 14:49 dune -> /Users/vyorkin/.opam/default/bin/dune

 ▲ where dune
/Users/vyorkin/.opam/default/bin/dune
/Users/vyorkin/bin/dune

I am using macOS

purcell commented 2 years ago

It searches in exec-path or the $PATH environment variable. On MacOS with a GUI Emacs, you might be surprised by what the defaults for those settings are — check out my exec-path-from-shell package.