I've been unable to run the elixir shell using
alchemist-iex-run because the erlang executable
erl is not found in my path. Here's the error:
/opt/homebrew/Cellar/elixir/1.12.1/bin/elixir: line 230: exec: erl: not found Process Alchemist-IEx exited abnormally with code 127
In an attempt to fix this, in init.el I added:
(add-to-list 'exec-path "/opt/homebrew/bin") (add-to-list 'exec-path "/opt/homebrew/sbin")
But this still doesn't work. Here's the result from...
echo $PATH: Includes the added homebrew paths.
Includes the added homebrew paths.
(call-process "ENV" nil t):
Does not include the added homebrew paths.
Does not include the added homebrew paths, but includes path to erl at /opt/homebrew/Cellar/erlang/24.0.2_1/lib/erlang/erts-12.0.2/bin.
How to correctly set the path so that the added homebrew paths always appear?