Skip to content

Commit a26ae37

Browse files
JanWielemakerclaude
andcommitted
FIXED: absolute_file_name/3 to enumerate all solutions while loading a file
If a file is being loaded, '$chk_file'/5 searches relative to the directory of the file being loaded. This search was guarded by an if-then-else to implement the deprecated fallback to the working directory, killing the choice points of the file candidates. As a result, solutions(all) only produced the first candidate. Now uses a soft cut. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent f0e6394 commit a26ae37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

boot/init.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@
14291429
!,
14301430
( file_directory_name(ContextFile, Dir),
14311431
'$chk_file_relative_to'(File, Exts, Cond, Dir, FullName)
1432-
-> true
1432+
*-> true
14331433
; current_prolog_flag(source_search_working_directory, true),
14341434
'$extend_file'(File, Exts, Extended),
14351435
'$file_conditions'(Cond, Extended),

0 commit comments

Comments
 (0)