Subject: bug#23941: closed (Re: bug#23941: load-path bug?)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 11 Jul 2016 16:00:03 +0000

Your bug report

#23941: load-path bug?

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
23941: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23941
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#23941: load-path bug?
From: Andy Wingo <[email-masked]>
To: Alex Kost <[email-masked]>
Cc: [email-masked], Tobin Harding <[email-masked]>
Date: Mon, 11 Jul 2016 17:59:09 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

On Mon 11 Jul 2016 10:18, Alex Kost <[email-masked]> 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

Subject: load-path bug?
From: Tobin Harding <[email-masked]>
To: [email-masked]
Date: Mon, 11 Jul 2016 09:12:09 +1000
List-Id: <debbugs-submit.debbugs.gnu.org>

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.