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

Send env variables to subprocess #18

Open
notlfish opened this issue Nov 29, 2023 · 2 comments
Open

Send env variables to subprocess #18

notlfish opened this issue Nov 29, 2023 · 2 comments

Comments

@notlfish
Copy link

I have the following situation:

  • Elixir and erlang are installed through asdf
  • (get-env "PATH") and exec-path include ~/.asdf/shims
  • calling inf-elixir gives me an error because erl is not found
  • Using exec-path-from-shell solves my problem

From what I understand the problem is that iex isn't running with the proper PATH in its env. I'm using linux mint and emacs 29.1.50.

@J3RN
Copy link
Owner

J3RN commented Nov 29, 2023

Hi @notlfish , thanks for reporting this! Would you mind sharing the error message that you're receiving?

@notlfish
Copy link
Author

notlfish commented Nov 30, 2023

~/.asdf/installs/elixir/1.15.5-otp-26/bin/elixir: 247: exec: erl: not found

Process Inf-Elixir exited abnormally with code 127

It actually shows the ~ expanded, and the elixir version is the one set globally by asdf. Calling inf-elixir or inf-elixir-project from a directory with a different asdf config shows a similar error message, with the elixir version locally selected in said directory.

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

2 participants