GNU bug report logs - #20512
bogus warning with (format) and ~{ ~}

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: Daniel Llorens <daniel.llorens@HIDDEN>; dated Wed, 6 May 2015 09:17:02 UTC; Maintainer for guile is bug-guile@HIDDEN.

Message received at 20512 <at> debbugs.gnu.org:


Received: (at 20512) by debbugs.gnu.org; 16 Sep 2019 15:19:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 16 11:19:39 2019
Received: from localhost ([127.0.0.1]:50832 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i9smw-0002J6-MS
	for submit <at> debbugs.gnu.org; Mon, 16 Sep 2019 11:19:38 -0400
Received: from mx4.mail.mmer.org ([178.22.66.29]:49321)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <levenson@HIDDEN>) id 1i9sb9-0001zg-CJ
 for 20512 <at> debbugs.gnu.org; Mon, 16 Sep 2019 11:07:27 -0400
Received: from delta (unknown [10.147.19.46])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mx4.mail.mmer.org (Postfix) with ESMTPSA id BC36A9CC47
 for <20512 <at> debbugs.gnu.org>; Mon, 16 Sep 2019 15:07:25 +0000 (UTC)
From: levenson@HIDDEN
To: 20512 <at> debbugs.gnu.org
Subject: bug#20512: bogus warning with (format) and ~{ ~}
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
Date: Mon, 16 Sep 2019 17:06:26 +0200
Message-ID: <84ftkwffgt.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 20512
X-Mailman-Approved-At: Mon, 16 Sep 2019 11:19:37 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


I encounter similar behavior, but for dynamic padding, but it one case
it doesn't even work. I am using guile 2.2.6 from guix distro

scheme@(guile-user)> (format #f "~:{~v_ ~a ~}" '((5 "hello")))

FORMAT: error with call: (format #f "~:{~v_ ~a ~}<===" ((5 hello)) ===>)
        missing argument(s)
In ice-9/format.scm:
  1590:19  2 (format #f "~:{~v_ ~a ~}" ((5 "hello")))
   197:20  1 (format:format-work "~:{~v_ ~a ~}" (((5 "hello"))))
In unknown file:
           0 (scm-error misc-error #f "~A" ("error in format") #f)
error in format

Added the bogus 0 which doesn't do anything

scheme@(guile-user)> (format #f "~:{~v_ ~a ~}" 0 '((5 "hello")))
;;; <stdin>:3:0: warning: "~:{~v_ ~a ~}": wrong number of `format' arguments: expected 1, got 2
$1 = "      hello "


-- 
Alexey




Information forwarded to bug-guile@HIDDEN:
bug#20512; Package guile. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 May 2015 09:16:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 06 05:16:30 2015
Received: from localhost ([127.0.0.1]:35950 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YpvRN-0000bv-GS
	for submit <at> debbugs.gnu.org; Wed, 06 May 2015 05:16:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33085)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <daniel.llorens@HIDDEN>) id 1YpvRM-0000bc-0L
 for submit <at> debbugs.gnu.org; Wed, 06 May 2015 05:16:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <daniel.llorens@HIDDEN>) id 1YpvRF-0004pg-Sa
 for submit <at> debbugs.gnu.org; Wed, 06 May 2015 05:16:22 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,LOTS_OF_MONEY
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:49898)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <daniel.llorens@HIDDEN>) id 1YpvRF-0004pc-PT
 for submit <at> debbugs.gnu.org; Wed, 06 May 2015 05:16:21 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46586)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <daniel.llorens@HIDDEN>) id 1YpvRE-0003Rx-Jp
 for bug-guile@HIDDEN; Wed, 06 May 2015 05:16:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <daniel.llorens@HIDDEN>) id 1YpvRB-0004ob-CF
 for bug-guile@HIDDEN; Wed, 06 May 2015 05:16:20 -0400
Received: from zhhdzmsp-smta18.bluewin.ch ([195.186.227.133]:45395)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <daniel.llorens@HIDDEN>) id 1YpvRB-0004o0-6B
 for bug-guile@HIDDEN; Wed, 06 May 2015 05:16:17 -0400
Received: from [195.186.99.131] ([195.186.99.131:39897]
 helo=zhbdzmsp-smta13.bluewin.ch)
 by zhhdzmsp-smta18.bluewin.ch (envelope-from <daniel.llorens@HIDDEN>)
 (ecelerity 3.5.7.40067 r(Platform:3.5.7.0)) with ESMTP
 id 25/00-24516-EDBD9455; Wed, 06 May 2015 09:16:14 +0000
Received: from 4box.hq.corp.viasat.com (62.2.203.131) by
 zhbdzmsp-smta13.bluewin.ch (8.5.142) (authenticated as dll@HIDDEN)
 id 51DDDBBD2CDAE263 for bug-guile@HIDDEN; Wed, 6 May 2015 09:16:14 +0000
From: Daniel Llorens <daniel.llorens@HIDDEN>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: bogus warning with (format) and ~{ ~}
Message-Id: <F2337461-BB2A-4292-9ED2-85AD25737A95@HIDDEN>
Date: Wed, 6 May 2015 11:16:04 +0200
To: bug-guile@HIDDEN
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
X-Mailer: Apple Mail (2.1878.6)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


Hello,

this is with current master, I don't know what stable 2.0 does, although =
I don't think it's changed there.

scheme@(guile-user)> (format #t "~{~{~a~^ ~}\n~}" '((1 2) (3 4)))
;;; <stdin>:1:0: warning: "~{~{~a~^ ~}\\n~}": wrong number of `format' =
arguments: expected 2, got 1
1 2
3 4
$1 =3D #t

apparently it only happens with double nesting, e.g. triple nesting is =
fine:

scheme@(guile-user)> (format #t "~{~{~{~a~^:~}~^ ~}\n~}" '(((1 2) (3 4)) =
((5 6) (7 8))))
1:2 3:4
5:6 7:8
$2 =3D #t

Regards,

	Daniel





Acknowledgement sent to Daniel Llorens <daniel.llorens@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#20512; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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