GNU bug report logs - #35192
`current-source-directory' fails when file-name #f

Previous Next

Package: guix;

Reported by: alex.sassmannshausen <at> gmail.com

Date: Mon, 8 Apr 2019 13:27:01 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.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 35192 in the body.
You can then email your comments to 35192 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-guix <at> gnu.org:
bug#35192; Package guix. (Mon, 08 Apr 2019 13:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to alex.sassmannshausen <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 08 Apr 2019 13:27:02 GMT) Full text and rfc822 format available.

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

From: Alex Sassmannshausen <alex.sassmannshausen <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: `current-source-directory' fails when file-name #f
Date: Mon, 08 Apr 2019 14:26:43 +0100
Hello,

re: /guix/utils.scm:748:

When file-name is #f (e.g. in a geiser repl), the procedure's match
fails. `assq' returns ('filename . #f).  This is handled in the match
bodies cond clause, but excluded as possibility by the encapsulating
match clause.

Alex




Information forwarded to bug-guix <at> gnu.org:
bug#35192; Package guix. (Mon, 08 Apr 2019 14:24:02 GMT) Full text and rfc822 format available.

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

From: Alex Sassmannshausen <alex.sassmannshausen <at> gmail.com>
To: 35192 <at> debbugs.gnu.org
Subject: Patch
Date: Mon, 08 Apr 2019 15:23:08 +0100
[Message part 1 (text/plain, inline)]
Please find attached a patch for handling #f file-name.

Alex
[0001-utils-Handle-f-file-name.patch (text/x-diff, attachment)]

Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Mon, 18 Nov 2019 04:26:01 GMT) Full text and rfc822 format available.

Notification sent to alex.sassmannshausen <at> gmail.com:
bug acknowledged by developer. (Mon, 18 Nov 2019 04:26:02 GMT) Full text and rfc822 format available.

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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Alex Sassmannshausen <alex.sassmannshausen <at> gmail.com>
Cc: 35192-done <at> debbugs.gnu.org
Subject: Re: bug#35192: `current-source-directory' fails when file-name #f
Date: Mon, 18 Nov 2019 13:24:59 +0900
Hello Alex!

Alex Sassmannshausen <alex.sassmannshausen <at> gmail.com> writes:

> Hello,
>
> re: /guix/utils.scm:748:
>
> When file-name is #f (e.g. in a geiser repl), the procedure's match
> fails. `assq' returns ('filename . #f).  This is handled in the match
> bodies cond clause, but excluded as possibility by the encapsulating
> match clause.
>
> Alex

Thank you for the fix!  I had the same problem when experimenting at the
REPL, and the comment about Geiser in the code didn't help.

I've pushed this change as commit
b997d43214445462f23947afbbcadf24c6018217.

Closing!

Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 16 Dec 2019 12:24:07 GMT) Full text and rfc822 format available.

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

Previous Next


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