-
Notifications
You must be signed in to change notification settings - Fork 29
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
Specifying vm.args (with hostname) makes "rebar3 shell" crash #27
Comments
Just found that I had to give full path name of where vm.args file is located, that fixed the problem of locating the vm.args file. But, for consistency it will be a good idea to fix this.
This is a fresh docker instance, and no other instances of demo are running. So, this error message looks suspicious. Can you help me fix this error? |
Ok. I see the reason why it is failing. Will have a PR shortly.
In rebar3_elixir_compile_util, a dependency elixir file is compiled with following command: Now, this would spawn another VM with previously set ERL_FLAGS. And this new VM could not be spawned because the node name is already in use(becuase of parent VM created by So, the fix would be to create wrapper for rebar_utils:sh() in rebar3_elixir_compile_util as:
I will shortly create pull request for this. |
Make a wrapper for rebar_utils:sh() so that this plugin can invoke elixir/mix commands with ERL_FLAGS set to "". This is done so that the settings of ERL_FLAGS do not influence these commands. For more information refer to: Issue 27, barrel-db#27
him interesting I wonder if except the node name resolution something else can be problematic. Imo we should be able to pass includes |
I have been playing with the example "demo" code from the repo. I wanted to add a sname to the demo Erlang VM. So, created a file called,
config/vm.args
in the demo directory which looks like:And issued the following commands from the demo directory:
And in docker from demo directory:
I see the following error:
On turning DEBUG=1, I see the following message:
I generally use this command
ERL_FLAGS=" -args_file config/vm.args" rebar3 shell
to run rebar3 shell for normal Erlang-Rebar projects. I expected to see this working for Elixir imported projects as well. May I know what do I need to do to make this command work.The text was updated successfully, but these errors were encountered: