GNU bug report logs - #23941
load-path bug?

Previous Next

Package: guile;

Reported by: Tobin Harding <me <at> tobin.cc>

Date: Mon, 11 Jul 2016 06:09:02 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23941 in the body.
You can then email your comments to 23941 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#23941; Package guile. (Mon, 11 Jul 2016 06:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tobin Harding <me <at> tobin.cc>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Mon, 11 Jul 2016 06:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobin Harding <me <at> tobin.cc>
To: bug-guile <at> gnu.org
Subject: load-path bug?
Date: Mon, 11 Jul 2016 09:12:09 +1000
Guile does not appear to search %load-path when locating a file to load.

From the documentation: https://www.gnu.org/software/guile/manual/html_node/Load-Paths.html

6.17.7 Load Paths
...
Variable: %load-path List of directories which should be searched for Scheme
modules and libraries.
...

Current environment:

$ guile --version
guile (GNU Guile) 2.1.3.11-d545e-dirty
Copyright (C) 2016 Free Software Foundation, Inc.

$ uname -a
Linux eros 4.6.1-1-zen #1 ZEN SMP PREEMPT Thu Jun 2 13:29:40 UTC 2016 x86_64
GNU/Linux

$ ls ~/build/scheme 
boot-9.scm  ggspec  test.scm

scheme@(guile-user)> %load-path
$1 = ("/home/tobin/build/scheme/" ...)

scheme@(guile-user)> (load "test.scm")
;;; Stat of /home/tobin/test.scm failed:
;;; ERROR: In procedure stat: No such file or directory: "/home/tobin/test.scm"
ERROR: In procedure primitive-load:
ERROR: In procedure open-file: No such file or directory: "/home/tobin/test.scm"

Is this something I am doing wrong?

thanks,
Tobin.




Information forwarded to bug-guile <at> gnu.org:
bug#23941; Package guile. (Mon, 11 Jul 2016 08:19:01 GMT) Full text and rfc822 format available.

Message #8 received at 23941 <at> debbugs.gnu.org (full text, mbox):

From: Alex Kost <alezost <at> gmail.com>
To: Tobin Harding <me <at> tobin.cc>
Cc: 23941 <at> debbugs.gnu.org
Subject: Re: bug#23941: load-path bug?
Date: Mon, 11 Jul 2016 11:18:43 +0300
Tobin Harding (2016-07-11 02:12 +0300) wrote:

> Guile does not appear to search %load-path when locating a file to load.
>
> From the documentation: https://www.gnu.org/software/guile/manual/html_node/Load-Paths.html

Right, and this page mentions 'load-from-path' :-)

> 6.17.7 Load Paths
> ...
> Variable: %load-path List of directories which should be searched for Scheme
> modules and libraries.
> ...
>
> Current environment:
>
> $ guile --version
> guile (GNU Guile) 2.1.3.11-d545e-dirty
> Copyright (C) 2016 Free Software Foundation, Inc.
>
> $ uname -a
> Linux eros 4.6.1-1-zen #1 ZEN SMP PREEMPT Thu Jun 2 13:29:40 UTC 2016 x86_64
> GNU/Linux
>
> $ ls ~/build/scheme 
> boot-9.scm  ggspec  test.scm
>
> scheme@(guile-user)> %load-path
> $1 = ("/home/tobin/build/scheme/" ...)
>
> scheme@(guile-user)> (load "test.scm")
> ;;; Stat of /home/tobin/test.scm failed:
> ;;; ERROR: In procedure stat: No such file or directory: "/home/tobin/test.scm"
> ERROR: In procedure primitive-load:
> ERROR: In procedure open-file: No such file or directory: "/home/tobin/test.scm"
>
> Is this something I am doing wrong?

You need to use the full file name for 'load'.  I think you want
'load-from-path'.

-- 
Alex




Reply sent to Andy Wingo <wingo <at> pobox.com>:
You have taken responsibility. (Mon, 11 Jul 2016 16:00:02 GMT) Full text and rfc822 format available.

Notification sent to Tobin Harding <me <at> tobin.cc>:
bug acknowledged by developer. (Mon, 11 Jul 2016 16:00:03 GMT) Full text and rfc822 format available.

Message #13 received at 23941-done <at> debbugs.gnu.org (full text, mbox):

From: Andy Wingo <wingo <at> pobox.com>
To: Alex Kost <alezost <at> gmail.com>
Cc: 23941-done <at> debbugs.gnu.org, Tobin Harding <me <at> tobin.cc>
Subject: Re: bug#23941: load-path bug?
Date: Mon, 11 Jul 2016 17:59:09 +0200
On Mon 11 Jul 2016 10:18, Alex Kost <alezost <at> gmail.com> writes:

> Tobin Harding (2016-07-11 02:12 +0300) wrote:
>
>> Guile does not appear to search %load-path when locating a file to load.
>>
>> From the documentation: https://www.gnu.org/software/guile/manual/html_node/Load-Paths.html
>
> Right, and this page mentions 'load-from-path' :-)

What Alex says :)

Andy




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 09 Aug 2016 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.