I rembered that there is also -vv. Could you give me the output of alr -d -vv index --reset-community This should explain more
~ $ ./bin/alr -d -vv index --reset-community
-->> Early elaboration started
-->> Loading settings from /home/laguest/.config//alire/settings.toml
-->> Load config key: 'index.last_update' = 'TOML_INTEGER'
-->> Looking for alire metadata at: /home/laguest
-->> Looking for alire metadata at: /home
-->> Looking for alire metadata at: /
-->> Root directory reached without finding alire metadata
-> Using default value for configuration 'distribution.disable_detection': 'FALSE'
-->> Early elaboration finished
-->> Registering variable for expressions: distribution
-->> Registering variable for expressions: os
-->> Registering variable for expressions: toolchain
-->> Registering variable for expressions: word-size
-->> Registering variable for expressions: host-arch
-->> alr platform configured
-->> Begin command line:
-->> Arg 0 (len 9): ./bin/alr
-->> Arg 1 (len 2): -d
-->> Arg 2 (len 3): -vv
-->> Arg 3 (len 5): index
-->> Arg 4 (len 17): --reset-community
-->> End command line.
-->> Color output enabled
debug: Platform-specific initialization done.
debug: Looking for indexes at /home/laguest/.config//alire/indexes
detail: Found 1 indexes
detail: Using default value for configuration 'index.auto_community': 'TRUE'
debug: Resetting community index...
debug: Index was already set, deleting and re-adding...
debug: Deleting folder /home/laguest/.config//alire/indexes/community...
debug: Metadata dir deleted: /home/laguest/.config//alire/indexes/community
debug: Index auto-refresh timestamp updated
debug: Write config: '[index]
last_update = 284845977
'
debug: Loading settings from /home/laguest/.config//alire/settings.toml
debug: Load config key: 'index.last_update' = 'TOML_INTEGER'
debug: Looking for alire metadata at: /home/laguest
debug: Looking for alire metadata at: /home
debug: Looking for alire metadata at: /
debug: Root directory reached without finding alire metadata
detail: Using default value for configuration 'distribution.disable_detection': 'FALSE'
debug: Looking for indexes at /home/laguest/.config//alire/indexes
detail: Found 0 indexes
debug: Insertion priority is 1
debug: Adding index git+https://github.com/alire-project/alire-index#stable-1.4.0 at /home/laguest/.config//alire/indexes
detail: Checking out [git]: https://github.com/alire-project/alire-index
detail: Spawning: ["git", "clone", "--recursive", "https://github.com/alire-project/alire-index", "/home/laguest/.config//alire/indexes/community/repo"]
Cloning into '/home/laguest/.config//alire/indexes/community/repo'...
remote: Enumerating objects: 15702, done.
remote: Counting objects: 100% (90/90), done.
remote: Compressing objects: 100% (67/67), done.
remote: Total 15702 (delta 51), reused 44 (delta 23), pack-reused 15612 (from 2)
Receiving objects: 100% (15702/15702), 3.34 MiB | 28.46 MiB/s, done.
Resolving deltas: 100% (8668/8668), done.
debug: Entering folder: /home/laguest/.config//alire/indexes/community/repo
detail: Spawning: ["git", "checkout", "-q", "stable-1.4.0"]
detail: Spawning: ["git", "submodule", "update", "--init", "--recursive"]
debug: Going back to folder: /home/laguest
debug: Deleting temporary folder /home/laguest/.config/alire/indexes/community...
debug: Deleting folder /home/laguest/.config/alire/indexes/community...
debug: ---8<--- Exception dump begin ---8<---
debug: ADA.ASSERTIONS.ASSERTION_ERROR
debug: Dynamic_Predicate failed at alire-directories.adb:409
debug: raised ADA.ASSERTIONS.ASSERTION_ERROR : Dynamic_Predicate failed at alire-directories.adb:409
Load address: 0x55c1bed20000
[./bin/alr]
0x55c1bfb8f931 System.Assertions.Raise_Assert_Failure at s-assert.adb:44
0x55c1bf1f28bb Alire.Directories.Find_Files_Under at alire-directories.adb:409
0x55c1bf3beb49 Alire.Index_On_Disk.Verify at alire-index_on_disk.adb:320
0x55c1bf3b95c3 Alire.Index_On_Disk.Add_With_Metadata at alire-index_on_disk.adb:65
0x55c1bf3abb57 Alire.Index_On_Disk.Loading.Add at alire-index_on_disk-loading.adb:180
0x55c1bf3ac8ab Alire.Index_On_Disk.Loading.Add_Or_Reset_Community.Actually_Add at alire-index_on_disk-loading.adb:205
0x55c1bf3ad27a Alire.Index_On_Disk.Loading.Add_Or_Reset_Community at alire-index_on_disk-loading.adb:228
0x55c1beec8bb4 Alr.Commands.Index.Reset_Community at alr-commands-index.adb:225
0x55c1beec7492 Alr.Commands.Index.Execute at alr-commands-index.adb:127
0x55c1beec7554 Alr.Commands.Index.Execute at alr-commands-index.adb:84
0x55c1bef4f83a Alr.Commands.Sub_Cmd.Execute at clic-subcommand-instance.adb:749
0x55c1bef5abda Alr.Commands.Execute at alr-commands.adb:680
0x55c1bee4b32d Alr.Main at alr-main.adb:13
0x55c1bee4e273 Main at b__alr-main.adb:2448
[/usr/lib64/libc.so.6]
0x7f6b1005346c
0x7f6b10053589
[./bin/alr]
0x55c1bee4b1b3 _start at ???
0xfffffffffffffffe
debug: --->8--- Exception dump end ----->8---
stderr: ADA.ASSERTIONS.ASSERTION_ERROR
stderr: Dynamic_Predicate failed at alire-directories.adb:409
stderr: raised ADA.ASSERTIONS.ASSERTION_ERROR : Dynamic_Predicate failed at alire-directories.adb:409
Load address: 0x55c1bed20000
[./bin/alr]
0x55c1bfb8f931 System.Assertions.Raise_Assert_Failure at s-assert.adb:44
0x55c1bf1f28bb Alire.Directories.Find_Files_Under at alire-directories.adb:409
0x55c1bf3beb49 Alire.Index_On_Disk.Verify at alire-index_on_disk.adb:320
0x55c1bf3b95c3 Alire.Index_On_Disk.Add_With_Metadata at alire-index_on_disk.adb:65
0x55c1bf3abb57 Alire.Index_On_Disk.Loading.Add at alire-index_on_disk-loading.adb:180
0x55c1bf3ac8ab Alire.Index_On_Disk.Loading.Add_Or_Reset_Community.Actually_Add at alire-index_on_disk-loading.adb:205
0x55c1bf3ad27a Alire.Index_On_Disk.Loading.Add_Or_Reset_Community at alire-index_on_disk-loading.adb:228
0x55c1beec8bb4 Alr.Commands.Index.Reset_Community at alr-commands-index.adb:225
0x55c1beec7492 Alr.Commands.Index.Execute at alr-commands-index.adb:127
0x55c1beec7554 Alr.Commands.Index.Execute at alr-commands-index.adb:84
0x55c1bef4f83a Alr.Commands.Sub_Cmd.Execute at clic-subcommand-instance.adb:749
0x55c1bef5abda Alr.Commands.Execute at alr-commands.adb:680
0x55c1bee4b32d Alr.Main at alr-main.adb:13
0x55c1bee4e273 Main at b__alr-main.adb:2448
[/usr/lib64/libc.so.6]
0x7f6b1005346c
0x7f6b10053589
[./bin/alr]
0x55c1bee4b1b3 _start at ???
0xfffffffffffffffe
error: Dynamic_Predicate failed at alire-directories.adb:409
error: alr encountered an unexpected error, re-run with -d for details.
error: error location: [./bin/alr]
Do you have a config.toml file somewhere left from alire 1.3? From the third line it becomes clear that the error happens when searching for the correct config file. Maybe alire gets confused by the mixed config.toml and settings.toml?
I think I got it! What is your XDG_CONFIG_HOME ?
If I run XDG_CONFIG_HOME=/home/ada/.config/\/ alr index --reset-community I (think) I get the same error!
Alire use the variable to get wher to save the config. But if itβs not set (like for me) it uses the predefined .config dir. Maybe you have .config/?
β .config XDG_CONFIG_HOME="/home/ada/.config/" alr2 index --reset-community
Cloning into '/home/ada/.config//alire/indexes/community/repo'...
remote: Enumerating objects: 15702, done.
remote: Counting objects: 100% (90/90), done.
remote: Compressing objects: 100% (67/67), done.
remote: Total 15702 (delta 51), reused 44 (delta 23), pack-reused 15612 (from 2)
Receiving objects: 100% (15702/15702), 3.34 MiB | 8.25 MiB/s, done.
Resolving deltas: 100% (8668/8668), done.
error: Dynamic_Predicate failed at alire-directories.adb:407
error: alr encountered an unexpected error, re-run with -d for details.
error: error location: 0x11288af System.Assertions.Raise_Assert_Failure at s-assert.adb:44
I CAN REPRODUCE THE ISSUE YAY!
$ echo $XDG_CONFIG_HOME
/home/laguest/.config/
remove the last β/β
this should solve the issue!
Ok, yeah, that was it:
$ export XDG_CONFIG_HOME=$HOME/.config
$ ./bin/alr -d -vv index --reset-community
-->> Early elaboration started
-->> Loading settings from /home/laguest/.config/alire/settings.toml
-->> Load config key: 'index.last_update' = 'TOML_INTEGER'
-->> Looking for alire metadata at: /home/laguest
-->> Looking for alire metadata at: /home
-->> Looking for alire metadata at: /
-->> Root directory reached without finding alire metadata
-> Using default value for configuration 'distribution.disable_detection': 'FALSE'
-->> Early elaboration finished
-->> Registering variable for expressions: distribution
-->> Registering variable for expressions: os
-->> Registering variable for expressions: toolchain
-->> Registering variable for expressions: word-size
-->> Registering variable for expressions: host-arch
-->> alr platform configured
-->> Begin command line:
-->> Arg 0 (len 9): ./bin/alr
-->> Arg 1 (len 2): -d
-->> Arg 2 (len 3): -vv
-->> Arg 3 (len 5): index
-->> Arg 4 (len 17): --reset-community
-->> End command line.
-->> Color output enabled
debug: Platform-specific initialization done.
debug: Looking for indexes at /home/laguest/.config/alire/indexes
detail: Found 0 indexes
detail: Using default value for configuration 'index.auto_community': 'TRUE'
debug: Resetting community index...
debug: Index was not set, adding it...
debug: Index auto-refresh timestamp updated
debug: Write config: '[index]
last_update = 284848045
'
debug: Loading settings from /home/laguest/.config/alire/settings.toml
debug: Load config key: 'index.last_update' = 'TOML_INTEGER'
debug: Looking for alire metadata at: /home/laguest
debug: Looking for alire metadata at: /home
debug: Looking for alire metadata at: /
debug: Root directory reached without finding alire metadata
detail: Using default value for configuration 'distribution.disable_detection': 'FALSE'
debug: Looking for indexes at /home/laguest/.config/alire/indexes
detail: Found 0 indexes
debug: Insertion priority is 1
debug: Adding index git+https://github.com/alire-project/alire-index#stable-1.4.0 at /home/laguest/.config/alire/indexes
detail: Checking out [git]: https://github.com/alire-project/alire-index
detail: Spawning: ["git", "clone", "--recursive", "https://github.com/alire-project/alire-index", "/home/laguest/.config/alire/indexes/community/repo"]
Cloning into '/home/laguest/.config/alire/indexes/community/repo'...
remote: Enumerating objects: 15702, done.
remote: Counting objects: 100% (90/90), done.
remote: Compressing objects: 100% (67/67), done.
remote: Total 15702 (delta 51), reused 44 (delta 23), pack-reused 15612 (from 2)
Receiving objects: 100% (15702/15702), 3.34 MiB | 28.00 MiB/s, done.
Resolving deltas: 100% (8668/8668), done.
debug: Entering folder: /home/laguest/.config/alire/indexes/community/repo
detail: Spawning: ["git", "checkout", "-q", "stable-1.4.0"]
detail: Spawning: ["git", "submodule", "update", "--init", "--recursive"]
debug: Going back to folder: /home/laguest
detail: alr index done
I should get a medal for this ![]()
This is in .bash_profile:
export XDG_CONFIG_HOME="${HOME}/.config/"
alr should filter paths.
It already does! But here it turns out that we just take whatever the XDG variables gives us and just append the path without filtering it for double slashes. Should be an easy fix since there is already a cleanup function in den