GNU bug report logs - #18835
load-from-path is inconsistent when looking for a compiled version of the source file

Previous Next

Package: guile;

Reported by: Geert Janssens <info <at> kobaltwit.be>

Date: Sat, 25 Oct 2014 17:31:01 UTC

Severity: normal

Tags: patch

Full log


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

From: Andy Wingo <wingo <at> pobox.com>
To: Geert Janssens <info <at> kobaltwit.be>
Cc: 18835 <at> debbugs.gnu.org
Subject: Re: bug#18835: load-from-path is inconsistent when looking for a
 compiled version of the source file
Date: Wed, 22 Jun 2016 10:28:52 +0200
On Sat 25 Oct 2014 19:09, Geert Janssens <info <at> kobaltwit.be> writes:

> $ guild compile -o test.scm.go ../test.scm
>
> $ GUILE_LOAD_PATH=$HOME/guile \
>
> GUILE_LOAD_COMPILED_PATH=$HOME/guile/ccache \
>
> guile -c '(load-from-path "test.scm")'
>
> => This command will *not* use either of $HOME/guile/ccache/test.go or
> $HOME/guile/ccache/test.scm.go. Instead it will autocompile test.scm
> into <default-cache-dir>/test.scm.go and use that one.

Weird.  The logic in load.c is that we only add on .go if the file
doesn't already have an extension.  If the file has an extension and
it's not .go, then we don't grovel in the path at all.  I guess this is
the wrong thing?

I am not sure if we can change this in 2.0 or not.  I guess we can.

Andy




This bug report was last modified 4 years and 74 days ago.

Previous Next


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