unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Catonano <catonano@gmail.com>
To: Guile User <guile-user@gnu.org>
Subject: Re: display path of directory of a file and bug?
Date: Tue, 8 Sep 2020 12:32:05 +0200	[thread overview]
Message-ID: <CAJ98PDzAeW6byJzUXxTCaTMX23OSsULdPCpVGMcvHOzbttiiZQ@mail.gmail.com> (raw)
In-Reply-To: <20200906151237.GC1494@scrozzle>

Il giorno dom 6 set 2020 alle ore 17:13 <2QdxY4RzWzUUiLuE@potatochowder.com>
ha scritto:

> On 2020-09-06 at 16:03:17 +0200,
> Zelphir Kaltstahl <zelphirkaltstahl@posteo.de> wrote:
>
> > If I move a file using `mv`, a recomplation seems to be not
> > required. If I copy the file instead, Guile recompiled it. Does this
> > have something to do with inodes or creation date, which is
> > differently handled when using `cp` instead of `mv`?
>
> That was my first thought.  Renaming a file (using mv) doesn't change
> the timestamp, and it's likely that guile tries to use a cached version
> but some of the pieces don't fit right.


Probably the cached version contains, hardwired, to say so, the _old_ name
of the file so when the compiled version runs, the file can't be found ?

Also if this is the case, the error message is... suboptimal ?

Maybe, being able to process the exception that gets raised, you could
extract more information about the error

The interesting line is this one

  1736:10  7 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)

If you can manage to somehow process such exception, it'd be nice if you
would share what you find ☺


      reply	other threads:[~2020-09-08 10:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-06 14:03 display path of directory of a file and bug? Zelphir Kaltstahl
2020-09-06 15:12 ` 2QdxY4RzWzUUiLuE
2020-09-08 10:32   ` Catonano [this message]

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=CAJ98PDzAeW6byJzUXxTCaTMX23OSsULdPCpVGMcvHOzbttiiZQ@mail.gmail.com \
    --to=catonano@gmail.com \
    --cc=guile-user@gnu.org \
    /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).