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

alr get timeout and crash on solving crates #1761

Open
2 tasks done
leogermond opened this issue Sep 19, 2024 · 1 comment
Open
2 tasks done

alr get timeout and crash on solving crates #1761

leogermond opened this issue Sep 19, 2024 · 1 comment
Labels
type: bug Something isn't working
Milestone

Comments

@leogermond
Copy link

leogermond commented Sep 19, 2024

Checklist

  • I've included the output of alr version.
  • I've included complete steps to reproduce my issue.

Describe the bug

alr v2.0.1

On an encrypted filesystem on windows, alr is very slow to resolve dependencies of a alr get, which causes a timeout, and ultimately a crash.

PS > alr -nd get -b labs_solar_system
Warning: Exploring incomplete solutions to dependencies, this may take some time...
ERROR: Solver failed to find any solution to fulfill dependencies after 31.10
ERROR: alr encountered an unexpected error, re-run with -d for details.
ERROR: error location: 0x7ff79c210064 Semantic_Versioning.Basic.Restrictions.First_Index at alire-solver.adb:1382

Also it proposed running it with the -d switch which was already set

To Reproduce
Steps to reproduce the behavior:

  1. Get your hands on a very slow filesystem
  2. Run alr get labs_solar_system
  3. See error

Expected Behavior

I would prefer if it asked for continuing like it does when installing the tools:

PS training_labs_solar_system> alr edit
Note: There is no editor currently configured.
Please select your prefered editor or 'other' to enter a custom command
 1. VS Code
 2. GNAT studio
 3. Other
Enter your choice index (first is default):
> 2
Note: 'gnatstudio -P ${GPR_FILE}' is now set as the editor command.
Note: You can change editors by running the following command:
Note: `alr edit --select-editor`
Note: Synchronizing workspace...
Warning: No solution found after 5 seconds.
Do you want to keep solving for a few more seconds?
[Y] Yes [N] No [A] Always (default is Yes) Y
Warning: No solution found after 19 seconds.
Do you want to keep solving for a few more seconds?
[Y] Yes [N] No [A] Always (default is Yes) A
Warning: No solution found after 26 seconds.

alr version

alr v2.0.1 on windows

alr logs

ERROR: Solver failed to find any solution to fulfill dependencies after 31.10
ERROR: alr encountered an unexpected error, re-run with -d for details.
ERROR: error location: 0x7ff79c210064 Semantic_Versioning.Basic.Restrictions.First_Index at alire-solver.adb:1382
@mosteo mosteo added the type: bug Something isn't working label Sep 20, 2024
@mosteo mosteo added this to the 2.x milestone Sep 20, 2024
@mosteo
Copy link
Member

mosteo commented Sep 20, 2024

Yes, the crash is clearly a bug. This might be fixed by #1739, to be checked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants