asdf-erlang icon indicating copy to clipboard operation
asdf-erlang copied to clipboard

Need --verbose flag

Open ORESoftware opened this issue 4 years ago • 8 comments

I am installing erlang via:

asdf install erlang 22.0.7

it's just hanging - I am wondering if something is actually happening or if it's really stuck......asdf needs a --verbose flag:

asdf install --verbose erlang 22.0.7

ORESoftware avatar Apr 19 '20 05:04 ORESoftware

asdf-erlang uses kerl underneath, and I don't think kerl has a --verbose flag, so we are going to be limited in what we can log in verbose mode.

Stratus3D avatar Apr 20 '20 19:04 Stratus3D

@Stratus3D would it be feasible to see any of the current progress from kerl? some stdout redirection. because my machine also get stuck after few minutes and i can't figure out what cause the issue.

oshanz avatar Jul 16 '21 06:07 oshanz

I use this to see what's currently happening.

tail -f /home/blablabla/.asdf/plugins/erlang/kerl-home/builds/asdf_21.2/otp_build_21.2.log

Change it with your own path.

asdf install erlang 22.0.7 should reveal the path for you.

Example output of the log file:

...
 ERLC   ../ebin/pubkey_pem.beam
 ERLC   ../ebin/pubkey_ssh.beam
 ERLC   ../ebin/pubkey_pbe.beam
 ERLC   ../ebin/pubkey_cert.beam
 ERLC   ../ebin/pubkey_cert_records.beam
 ERLC   ../ebin/pubkey_crl.beam
 VSN    ../ebin/public_key.app
 VSN    ../ebin/public_key.appup
...

yusufmalikul avatar Aug 05 '21 06:08 yusufmalikul

@yusufmalikul your code sample is blank for me.

Stratus3D avatar Aug 05 '21 12:08 Stratus3D

@yusufmalikul your code sample is blank for me.

sorry, please see my updated comment.

yusufmalikul avatar Aug 05 '21 12:08 yusufmalikul

I forgot I had an open PR for this project that is sort of related - https://github.com/asdf-vm/asdf-erlang/pull/185

Stratus3D avatar Aug 05 '21 20:08 Stratus3D

I have updated #185, anyone here want to test it out for me? It doesn't add a --verbose flag but it gets some things in order so output is less confusing.

Stratus3D avatar Aug 05 '21 21:08 Stratus3D

$ asdf install java adoptopenjdk-11.0.22+7
####################################                                        49.9%

ASDF freezes there for several minutes before finally completing.

I would like to know what the bottleneck is. Is it a download taking long, or perhaps the execution of an install script?

mcandre avatar Mar 13 '24 16:03 mcandre