ALS launches two alr
processes in the same file to find a project file and environment (alr --non-interactive printenv
and alr --non-interactive show
). It seems they unable to work properly.
To Reproduce
no-code-navigation
and run
for J in `seq 1 10`; do alr -n show > /tmp/alr-$J.log 2>&1 & done; wait
alr
process you will see Exit 1
. Check /tmp/alr-$J.log
for their outputExpected Behavior
Generally speaking it would be nice to success all concurrent alr
executions, but I see that it's probable hard to achieve and verify by CI/tests. So I'm going to change ALS to launch alr
processes in a sequence.
alr
version
alr version: 2.0.1
alr
logs
'alr --non-interactive show' failed:
Warning: Could not completely remove /root/.local/share/alire/releases/xmlada_24.0.0_ae5a015b/alire/alire.toml.upstream
ERROR: file "/root/.local/share/alire/releases/xmlada_24.0.0_ae5a015b/alire/alire.toml.upstream" could not be deleted
ERROR: alr encountered an unexpected error, re-run with -d for details.
ERROR: error location: 0x6347e939877f ada__directories__delete_file at ???
'alr --non-interactive printenv' failed:
Warning: Could not completely remove /root/.local/share/alire/releases/xmlada_24.0.0_ae5a015b/alire/alire.toml.upstream
ERROR: file "/root/.local/share/alire/releases/xmlada_24.0.0_ae5a015b/alire/alire.toml.upstream" could not be deleted
ERROR: alr encountered an unexpected error, re-run with -d for details. ERROR: error location: 0x62f95b2fa77f ada__directories__delete_file at ???
'alr --non-interactive printenv' failed:
ERROR: file "alire" not found ERROR:
alr encountered an unexpected error, re-run with -d for details. ERROR: error location: 0x579f6a2450c9 ada__directories__rename at ???
Warning: Could not completely remove /root/.local/share/alire/releases/gnatcoll_24.0.0_11c512d1
Warning: Contents listing failed with code: 2
ERROR: Deployment of source archive gnatcoll-core-24.0.0.zip at https://github.com/adacore/gnatcoll-core/archive/v24.0.0/gnatcoll-core-24.0.0.zip with hash sha512:11c512d1b4adec34953bb4247c92d01a1333d6246a925317a5b3d2b30ff05f32246d6e7cfec12df243f4e58d4820e91ac506ff758e8856e527cb0674c1ee029a to /root/.local/share/alire/releases/gnatcoll_24.0.0_11c512d1 failed
Warning: Could not completely remove /root/.local/share/alire/releases/gnatcoll_24.0.0_11c512d1
ERROR: Deployment of source archive gnatcoll-core-24.0.0.zip at https://github.com/adacore/gnatcoll-core/archive/v24.0.0/gnatcoll-core-24.0.0.zip with hash sha512:11c512d1b4adec34953bb4247c92d01a1333d6246a925317a5b3d2b30ff05f32246d6e7cfec12df243f4e58d4820e91ac506ff758e8856e527cb0674c1ee029a to /root/.local/share/alire/releases/gnatcoll_24.0.0_11c512d1 failed
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too