[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (Geiser or guile bug) Guix-daemon output is missing
From: |
Alex Kost |
Subject: |
Re: (Geiser or guile bug) Guix-daemon output is missing |
Date: |
Mon, 07 Sep 2015 22:58:42 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Ludovic Courtès (2015-09-07 00:28 +0300) wrote:
> Alex Kost <address@hidden> skribis:
>
>> Now the bug itself:
>>
>> 1. Start Geiser (M-x run-guile)
>>
>> 2. Make a scheme buffer and evaluate (use-modules (guix scripts build))
>> there using "C-x C-e" or "C-M-x" (or any other "geiser-eval-…"
>> command). This is important: do not ,use module in the REPL;
>> evaluate ‘use-modules’ clause in a scheme buffer!
>>
>> 3. Go to the REPL and run the following there:
>>
>> (catch 'quit (lambda () (guix-build "test-package")) (const #t)).
>>
>> You get only "The following derivation will be built: …" but there is no
>> build output from guix-daemon.
>
> Ha ha! Try this before:
>
> (current-build-output-port (current-error-port))
>
> The trick here is that ‘current-build-output-port’ is initialized to
> (current-error-port), but that initialization happens at the top-level,
> apparently before Geiser has rebound ‘current-error-port’, hence the
> silence.
>
> HTH!
Thanks for answering! This helped to make a simple recipe, so I
reported it: <https://github.com/jaor/geiser/issues/83>.
--
Alex