unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: Geert Janssens <info@kobaltwit.be>
Cc: 18835@debbugs.gnu.org
Subject: 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	[thread overview]
Message-ID: <87twgltynv.fsf@pobox.com> (raw)
In-Reply-To: <2787802.8pnN87I00l@legolas.kobaltwit.lan> (Geert Janssens's message of "Sat, 25 Oct 2014 19:09:09 +0200")

On Sat 25 Oct 2014 19:09, Geert Janssens <info@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





  reply	other threads:[~2016-06-22  8:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-25 17:09 bug#18835: load-from-path is inconsistent when looking for a compiled version of the source file Geert Janssens
2016-06-22  8:28 ` Andy Wingo [this message]
2021-05-17 20:25 ` Taylan Kammer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87twgltynv.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=18835@debbugs.gnu.org \
    --cc=info@kobaltwit.be \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).