unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "JOULAUD François" <Francois.JOULAUD@radiofrance.com>
To: "edk@beaver-labs.com" <edk@beaver-labs.com>
Cc: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: Error with guile function format
Date: Fri, 12 Mar 2021 17:27:04 +0000	[thread overview]
Message-ID: <20210312172318.oqwpoug6xd75rf23@fjo-extia-HPdeb.example.avalenn.eu> (raw)
In-Reply-To: <87sg50nwjc.fsf@rdklein.fr>

Hello,

On Fri, Mar 12, 2021 at 05:53:27PM +0100, edk@beaver-labs.com wrote:
> Yet the build fail with the following error message:
> 
> In ice-9/format.scm:
>      43:8  0 (format "quake3-latest-pk3s/baseq3/pak~a.pk3" 1)
> 
> ice-9/format.scm:43:8: In procedure format:
> format: expected a string for format string 1

> The first argument to format is a string, so I don't understand the

First argument to format should be a port[1]
or #f to return the output as a string.
In your case something like:

--8<---------------cut here---------------start------------->8---
   (format #f "mystring ~a" 1)
--8<---------------cut here---------------end--------------->8---

so your snippet should be more like:

--8<---------------cut here---------------start------------->8---
                    (map (cut format #f "quake3-latest-pk3s/baseq3/pak~a.pk3" <>)
                         (iota 8 1))
--8<---------------cut here---------------end--------------->8---


[1]: https://www.gnu.org/software/guile/manual/html_node/Formatted-Output.html#index-format-1

  reply	other threads:[~2021-03-12 18:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-12 16:53 Error with guile function format edk
2021-03-12 17:27 ` JOULAUD François [this message]
2021-03-12 17:40 ` divoplade
2021-03-12 18:23 ` Ricardo Wurmus
2021-03-12 23:33 ` Edouard Klein

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://guix.gnu.org/

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

  git send-email \
    --in-reply-to=20210312172318.oqwpoug6xd75rf23@fjo-extia-HPdeb.example.avalenn.eu \
    --to=francois.joulaud@radiofrance.com \
    --cc=edk@beaver-labs.com \
    --cc=help-guix@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).