[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error with guile function format
From: |
Edouard Klein |
Subject: |
Re: Error with guile function format |
Date: |
Sat, 13 Mar 2021 00:33:39 +0100 |
User-agent: |
mu4e 1.4.15; emacs 27.1 |
Dear François, Ricardo and divoplade,
This was indeed the issue, and the correct fix. Thank you for your
explanations. I'm not familiar with the notion of ports, coming from
languages that don't have them, but I see now how useful they are !
They're like the standard input/output of the shell, with redirections,
but for any function inside the program. Awesome :)
Thank you very much !
I've submitted a patch upstream (and also played quake 3 for the first
time in ~15 years :) oh the memories)
Cheers,
Edouard.
edk@beaver-labs.com writes:
> Dear Guixers,
>
> In a channel-that-should-not-be-named, there is the following snippet
>
> (apply invoke "7z" "e" (assoc-ref %build-inputs "patch-data")
> (map (cut format "quake3-latest-pk3s/baseq3/pak~a.pk3" <>)
> (iota 8 1)))
>
> Which, as far as my limited knowledge of Guile goes, is correct.
>
> 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
> fuss.
>
> Any idea would be welcome :)
>
> Thanks !
>
> Edouard.