Asdf-erlang: Returning from installation does not continue asdf

Created on 15 Jan 2018  路  5Comments  路  Source: asdf-vm/asdf-erlang

After a successful installation, asdf does not continue with the other plugins. It was the case before kerl integration.

Steps to reproduce

  1. Create a .tool-versions containing an Erlang and an Elixir version, both non installed
  2. Run asdf install

Actual result

asdf calls kerl to build and install Erlang, and then exits. Elixir version is not installed.

Expected result

asdf would continue its installation, running other plugins.

bug help wanted

All 5 comments

I just ran into the same problem. Moving erlang <version> to the bottom of the file seems to work for now.

Maybe it is related to the set -e in the install script. But that means there is a problem somewhere else. I will try to add logs an find from where it comes tomorrow if I have some time.

Ok, so I鈥檝e just uninstalled and installed again Erlang 20.2 on my machine several times, phew! I come up with an insteresting observation.

What I鈥檝e done

  1. I uninstalled Erlang 20.2 and set a .tool-version with erlang 20.2 prior to elixir 1.6.0-otp-20.
  2. To avoid re-building on each reinstall, I commented out the kerl cleanup in the install script.
  3. I ran asdf install.
  4. After building and installing Erlang, asdf returned without checking for the Elixir installation.
  5. In the uninstall script, I commented out the kerl delete build.
  6. I ran asdf uninstall erlang 20.2.
  7. I commented out kerl build in the install script and ran asdf install again.
  8. It installed Erlang 20.2 and checked for the Elixir installation (so it works in this case).
  9. I uninstalled Erlang 20.2 again with the modified uninstall script.
  10. I uncommented the kerl cleanup in the install script and launch the installation again.
  11. After installing Erlang 20.2, asdf checked for the Elixir installation (so that鈥檚 not the cleanup).
  12. I unpatched both scripts, uninstalled and re-installed Erlang 20.2 to be sure: issue again.

My conclusion

It must come from the kerl build script doing some side effect.

I experienced this as well with Erlang 20.3 and Elixir 1.6.4. The culprit in my case, I think, is the absence of the Java compiler. Even with appropriate Kerl flags, it still fails to build Elixir the first time.

Is this still an issue? I just ran asdf install with a .tool-versions file that contained erlang followed by elixir, and both installed successful. I'm going to close this issue. Please comment if you are still having issues with the latest version of asdf and asdf-erlang.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sorliem picture sorliem  路  4Comments

nathany picture nathany  路  6Comments

rodrigues picture rodrigues  路  3Comments

RobinClowers picture RobinClowers  路  3Comments

jdmarshall picture jdmarshall  路  4Comments