From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: (Geiser or guile bug) Guix-daemon output is missing Date: Sun, 06 Sep 2015 23:28:43 +0200 Message-ID: <87lhcj44qc.fsf@gnu.org> References: <87d1xvx6lb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYhUX-000823-FR for guix-devel@gnu.org; Sun, 06 Sep 2015 17:28:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZYhUU-0002kd-90 for guix-devel@gnu.org; Sun, 06 Sep 2015 17:28:49 -0400 In-Reply-To: <87d1xvx6lb.fsf@gmail.com> (Alex Kost's message of "Sun, 06 Sep 2015 12:03:28 +0300") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Alex Kost Cc: guix-devel@gnu.org Alex Kost 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-=E2=80=A6" > command). This is important: do not ,use module in the REPL; > evaluate =E2=80=98use-modules=E2=80=99 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: =E2=80=A6" but ther= e is no > build output from guix-daemon. Ha ha! Try this before: (current-build-output-port (current-error-port)) The trick here is that =E2=80=98current-build-output-port=E2=80=99 is initi= alized to (current-error-port), but that initialization happens at the top-level, apparently before Geiser has rebound =E2=80=98current-error-port=E2=80=99, = hence the silence. HTH! Ludo=E2=80=99.