Commit 1ac2f3c
authored
Do not fail in case of moved file (#1439)
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.1 parent 701cf69 commit 1ac2f3c
3 files changed
Lines changed: 20 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
| |||
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
| 278 | + | |
276 | 279 | | |
277 | 280 | | |
278 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
| 252 | + | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| |||
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
365 | | - | |
| 366 | + | |
| 367 | + | |
366 | 368 | | |
367 | 369 | | |
368 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
734 | | - | |
| 734 | + | |
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | 744 | | |
748 | 745 | | |
749 | 746 | | |
| |||
752 | 749 | | |
753 | 750 | | |
754 | 751 | | |
755 | | - | |
| 752 | + | |
756 | 753 | | |
757 | | - | |
| 754 | + | |
758 | 755 | | |
759 | 756 | | |
760 | 757 | | |
| |||
771 | 768 | | |
772 | 769 | | |
773 | 770 | | |
774 | | - | |
| 771 | + | |
775 | 772 | | |
776 | 773 | | |
777 | 774 | | |
| |||
784 | 781 | | |
785 | 782 | | |
786 | 783 | | |
787 | | - | |
| 784 | + | |
| 785 | + | |
788 | 786 | | |
789 | | - | |
| 787 | + | |
790 | 788 | | |
791 | 789 | | |
792 | | - | |
793 | | - | |
| 790 | + | |
| 791 | + | |
794 | 792 | | |
795 | 793 | | |
796 | 794 | | |
| |||
0 commit comments