Skip to content

Do not fail in case of moved file#1439

Merged
fblanqui merged 3 commits into
Deducteam:masterfrom
sacerdot:fix_install
Jul 10, 2026
Merged

Do not fail in case of moved file#1439
fblanqui merged 3 commits into
Deducteam:masterfrom
sacerdot:fix_install

Conversation

@sacerdot

@sacerdot sacerdot commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Commit to mitigate Issue #1436

lambdapi install moves .lp and .lpo files into the standard lib_root; moreover when "lambdapi build" is called from opam, the files are also moved to yet another location (inside the sandbox) to compile them.

However, the .lpo are NOT relocatable in the sense that filenames inside positions pos are absolute path. We use them:
a) during indexing of rules to build a qualid for the rule
b) to open the file to show the result of queries

Both use cases (a and b) used to fail. In particular, a) prevented to import a library from the standard lib_root.

As a mitigation, we replace the hard failures with degradation of functionality. Further work will be necessary to restore the full functionality. In particular, libraries installed in stdlib_root should always be globally indexed.

@sacerdot sacerdot requested a review from fblanqui July 3, 2026 11:59
@fblanqui fblanqui merged commit 1ac2f3c into Deducteam:master Jul 10, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants