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

Elixir build failing when used as devcontainer feature #3

Closed
ccavolt opened this issue May 7, 2024 · 2 comments
Closed

Elixir build failing when used as devcontainer feature #3

ccavolt opened this issue May 7, 2024 · 2 comments
Labels
good first issue Good for newcomers

Comments

@ccavolt
Copy link

ccavolt commented May 7, 2024

Hi, I'm building devcontainer features for vfox, vfox-erlang, and vfox-elixir. I'm pretty sure I have the first two figured out but I'm stuck on vfox-elixir. When I try to run a build I get the following error:

image

I normally like trying to figure out things myself but I'm not sure what to do here. The error messages are vague and I'm not well versed in Lua or makefiles. If you can provide any help, I'd greatly appreciate it! If there's any additional information that would help, just let me know.

@yeshan333
Copy link
Member

yeshan333 commented May 8, 2024

Hi, I'm building devcontainer features for vfox, vfox-erlang, and vfox-elixir. I'm pretty sure I have the first two figured out but I'm stuck on vfox-elixir. When I try to run a build I get the following error:

image

I normally like trying to figure out things myself but I'm not sure what to do here. The error messages are vague and I'm not well versed in Lua or makefiles. If you can provide any help, I'd greatly appreciate it! If there's any additional information that would help, just let me know.

It seem that the erlang compiler (aka erlc) not found in $PATH. If you use vfox-erlang to install Erlang/OTP, you must use the vfox use erlang@xxxx before you install Elixir.
image

Hear are the example installation flow

- name: install Erlang/OTP & Elixir by vfox-erlang & vfox-elixir plugin (Darwin)
:

image

# like this
vfox use erlang@xxx
vfox install elixir@xxx

@ccavolt

@yeshan333 yeshan333 added the good first issue Good for newcomers label May 8, 2024
@ccavolt
Copy link
Author

ccavolt commented May 9, 2024

@yeshan333 Thanks for the quick response! In my script, I had included the vfox use command. What ended up being the problem was the "vfox activate bash" command, being in .bashrc, doesn't activate in scripts, so I had to trigger it manually after installing Erlang, and then again after installing Elixir in order to get the PATH to update. I see now that your example installation flow is also calling vfox activate bash after installing each language.

Thanks for pointing me in the right direction and for writing this plugin!

@ccavolt ccavolt closed this as completed May 9, 2024
@yeshan333 yeshan333 pinned this issue May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants