GNU bug report logs -
#21347
include-from-path and relative paths in load-path
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21347 in the body.
You can then email your comments to 21347 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#21347
; Package
guile
.
(Tue, 25 Aug 2015 19:44:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
taylanbayirli <at> gmail.com (Taylan Ulrich Bayırlı/Kammer)
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Tue, 25 Aug 2015 19:44:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
When there are relative paths in the load-path, `include-from-path'
seems to always interpret them relative to the directory of the file in
which the `include-from-path' is called, instead of relative to the
current working directory in effect when Guile is started.
Transcript:
--- SNIP ---
taylan <at> T420:~$ unset GUILE_LOAD_COMPILED_PATH
taylan <at> T420:~$ unset GUILE_LOAD_PATH
taylan <at> T420:~$ echo '(display "foo\n")' > display.scm
taylan <at> T420:~$ mkdir test
taylan <at> T420:~$ echo '(include-from-path "display.scm")' > test/test.scm
taylan <at> T420:~$ guile -q -L .
GNU Guile 2.0.11
Copyright (C) 1995-2014 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guile-user)> (load "test/test.scm")
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /home/taylan/test/test.scm
;;; WARNING: compilation of /home/taylan/test/test.scm failed:
;;; ERROR: In procedure open-file: No such file or directory: "/home/taylan/test/./display.scm"
ERROR: In procedure open-file:
ERROR: In procedure open-file: No such file or directory: "/home/taylan/test/./display.scm"
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]>
--- SNIP ---
Is this behavior desired? I would say not, because when passing "-L ."
to guile, one expects the current directory to be added to the load
path, not some symbolic "current directory" whose true value changes
dynamically. (Well, I could understand if there were an explicit
`chdir' call, though even then I think the "." would ideally be
evaluated once at startup, if possible.)
Taylan
Reply sent
to
Andy Wingo <wingo <at> pobox.com>
:
You have taken responsibility.
(Fri, 24 Jun 2016 08:43:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
taylanbayirli <at> gmail.com (Taylan Ulrich Bayırlı/Kammer)
:
bug acknowledged by developer.
(Fri, 24 Jun 2016 08:43:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 21347-done <at> debbugs.gnu.org (full text, mbox):
On Tue 25 Aug 2015 21:42, taylanbayirli <at> gmail.com (Taylan Ulrich "Bayırlı/Kammer") writes:
> When there are relative paths in the load-path, `include-from-path'
> seems to always interpret them relative to the directory of the file in
> which the `include-from-path' is called, instead of relative to the
> current working directory in effect when Guile is started.
Indeed, good catch. Fixed in master. I don't know if we can fix in
2.0.
Andy
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 22 Jul 2016 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 335 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.