GNU bug report logs -
#72382
srfi-64: test-with-runner requires some decl-or-expr
Previous Next
Reported by: Tomas Volf <~@wolfsden.cz>
Date: Tue, 30 Jul 2024 19:53:17 UTC
Severity: normal
Done: Tomas Volf <~@wolfsden.cz>
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 72382 in the body.
You can then email your comments to 72382 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#72382
; Package
guile
.
(Tue, 30 Jul 2024 19:53:17 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Tomas Volf <~@wolfsden.cz>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Tue, 30 Jul 2024 19:53:17 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
I think I found a bug in (srfi srfi-64) module shipped with GNU Guile.
test-with-runner has following signature:
(test-with-runner runner decl-or-expr ...)
That, according to syntax-case rules (and how test-apply works with the same
definition) should mean that it accepts 0 or more decl-or-expr. However that
does not seem to be the case:
(use-modules (srfi srfi-64))
(let ((r (test-runner-null)))
(test-with-runner r))
Leading to:
;;; Syntax error:
;;; unknown location: lambda: bad lambda in form (lambda ())
ice-9/psyntax.scm:2824:12: In procedure syntax-violation:
Syntax error:
unknown location: lambda: bad lambda in form (lambda ())
Have a nice day
Tomas Volf
Information forwarded
to
bug-guile <at> gnu.org
:
bug#72382
; Package
guile
.
(Tue, 01 Oct 2024 23:04:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 72382 <at> debbugs.gnu.org (full text, mbox):
On 30.07.2024 21:51, Tomas Volf wrote:
> Hello,
>
> I think I found a bug in (srfi srfi-64) module shipped with GNU Guile.
>
> test-with-runner has following signature:
>
> (test-with-runner runner decl-or-expr ...)
>
> That, according to syntax-case rules (and how test-apply works with the same
> definition) should mean that it accepts 0 or more decl-or-expr. However that
> does not seem to be the case:
>
> (use-modules (srfi srfi-64))
> (let ((r (test-runner-null)))
> (test-with-runner r))
>
> Leading to:
>
> ;;; Syntax error:
> ;;; unknown location: lambda: bad lambda in form (lambda ())
> ice-9/psyntax.scm:2824:12: In procedure syntax-violation:
> Syntax error:
> unknown location: lambda: bad lambda in form (lambda ())
>
> Have a nice day
> Tomas Volf
>
>
Should be easy to fix by adding a preceding arm to the syntax-rules, explicitly handling the case of zero decl-or-expr elements as a no-op.
I've just done that in my implementation:
https://codeberg.org/taylan/scheme-srfis/commit/5e34f47f383fd5a35c88a52bd1d32a65a49b7f0a
- Taylan
bug closed, send any further explanations to
72382 <at> debbugs.gnu.org and Tomas Volf <~@wolfsden.cz>
Request was from
Tomas Volf <~@wolfsden.cz>
to
control <at> debbugs.gnu.org
.
(Mon, 21 Oct 2024 20:29:04 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 19 Nov 2024 12:24:25 GMT)
Full text and
rfc822 format available.
This bug report was last modified 297 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.