From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id UIi9MtOfIWRuhgEASxT56A (envelope-from ) for ; Mon, 27 Mar 2023 15:53:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0AvxMtOfIWT8ygAA9RJhRA (envelope-from ) for ; Mon, 27 Mar 2023 15:53:23 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3DAE938C0C for ; Mon, 27 Mar 2023 15:53:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgnHC-0002ns-OQ; Mon, 27 Mar 2023 09:52:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgnH8-0002nK-1A for guix-devel@gnu.org; Mon, 27 Mar 2023 09:52:44 -0400 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pgnH6-00051v-EJ for guix-devel@gnu.org; Mon, 27 Mar 2023 09:52:41 -0400 Received: by mail-ed1-x536.google.com with SMTP id h8so36511192ede.8 for ; Mon, 27 Mar 2023 06:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679925158; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=nY9dbJvAv9DHNEaqw/muH3wffLWJ3UKD1QCIGfsDUAo=; b=UmTw5rOrS/ONgj+NPQRXUF9fFMQ9kyX4QiLKsvS77OPos807odPaaUxna92A9a0mZs VzPccQsL1KnPPi75upE7/gjXnSPSbhkrHoZwWxZns1CYviUHpxLBwpGDsfOkCb7yJJew brXzJSMeu4GDo8nIibFXztO4tytzg7ycyklBll5zUZbceSN/2GlkpZx0gmTdRKHUtraY KFVRVgFYVaVAD270/fi0tVD20JNBbOYp0aNFB9Z6Ilg44FoR3eeXNbOwE+5GMe7IBaZq CMOOu2SkvYZHyXE56GO1ClF5khlqGTlnorPbH76IXBf/JypFQ2Irhg/p7fYuyGTyAwYz T3tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679925158; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=nY9dbJvAv9DHNEaqw/muH3wffLWJ3UKD1QCIGfsDUAo=; b=Tyv+o4MbpAgHrZ1efw+xFHeK9FFNv88fJrNM+b/6oaBwhllVqsEuEen+IYcMePWOQ+ VDSm76OrAmK5JRNF5fXE+LFVNsgafNerJ4dQXGPCZCpLNdyUTPC7tkNe7nnedDMnM5Ux MeVlHyIrvczbWwRYrfeU7kBzgqrxTuH6SufHru9bV25V6jYFueQRbW/TMVLeYQ6eqmDl vo086YqpS3B19eNiQ40bwhQmp8uZiorjLXhu3rcnmUHj3lqvimAxQ6sVXW9dOn7SFiWT 58vTZt8GLZ9MVM1t43Jx+zy89pUR2YkHJMXMHlJOCYxk9hZqQXewTFfpRBcdwfZfhdAB WbzA== X-Gm-Message-State: AAQBX9cctPMktFZpsG8Yhdvk4QkL4Uv1QltYNIaU5Gg5PYaVyComgITT JxsQipJ8WG4lJKNR301Hj3FNA1fCHTZd4dXRJjmZIcOc6uQ= X-Google-Smtp-Source: AKy350bBGk8hU9Ebwxg9dhPsdfgyHAstH4o6mngQOaMo4W+tfN5mqD6Efd02yG4L2NCw3j9yBi/GGkUU4KFwc22yqkk= X-Received: by 2002:a50:cc94:0:b0:4fb:c8e3:1ae2 with SMTP id q20-20020a50cc94000000b004fbc8e31ae2mr6070818edi.3.1679925158106; Mon, 27 Mar 2023 06:52:38 -0700 (PDT) MIME-Version: 1.0 From: Vladilen Kozin Date: Mon, 27 Mar 2023 14:52:26 +0100 Message-ID: Subject: guix system container and friends fail to report intermediate errors To: guix-devel@gnu.org Content-Type: multipart/alternative; boundary="0000000000004c583905f7e20ec2" Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=vladilen.kozin@gmail.com; helo=mail-ed1-x536.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679925203; a=rsa-sha256; cv=none; b=tZa1WVQChysAELW9eLGvVHdkj6kWPFo9DJPA/eW0tjq+ACNgJwTR94vztYhliJWoFeGG4Z Tw3+4vrTR7PeqvkuxQntJrTZxWm+zw/b44804sixTEdJioXhtga4ts/ctmQM/f6PTDze8K b1bTJFc7pjXi8qxCRd+eNzgq5NZhWQfFvWhJ37th8G9Y1uwBrCEUNLNhU85W4WysLUTx8N HSmc1V6dBYsAq1sATwVSAgFr9PMi8zr1eM9mb6FJth1/e24ulkGPziwn4mVDKwiII47Jxh 09TlaUJLhB87ZGS2qKRuHN0Jh+HKSMjrbQ+9TxzQA5DuNkN5pOD9EFySWj/Biw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UmTw5rOr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679925203; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nY9dbJvAv9DHNEaqw/muH3wffLWJ3UKD1QCIGfsDUAo=; b=qx7pUQk+bEpYEj0CpJXiLjLOdU4N9xO/JS9IoYvSoSlhwbbqaxVl0LszkwU8Yi6LuE0SLe vXZGCrMRfgpssUqznas36Bj0ypkfJENq4rcFGi04WMwAZmEfjDptstmofE5VhVFrCE3lIo MZpHIPaEJVFIoXaQ6DAMWEV4dDynMgr3qdD6GBshmAlCxYjMFfS4yknO7Y07G8SalHSFPB 6qdc2rVqmgAuTVYLFJoPfZph9GKwPdIZnjMet3OL4UP2Vxo3BDhY40oLXPUbuQrfW2buvR aXTOA+rlPLAAgEnrLEo0wXCcNj05aA4t1HUGLLiaSwm2pyQBM066p9q2j0m/8w== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UmTw5rOr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.46 X-Spam-Score: -6.46 X-Migadu-Queue-Id: 3DAE938C0C X-TUID: f20qaJbVDSoF --0000000000004c583905f7e20ec2 Content-Type: text/plain; charset="UTF-8" Hello. Is it possible to get better error reporting in the following example? $ sudo guix system -K -L /home/vlad/Code/fullmeta-guix/channel container os.scm And our os.scm imports some services defined in our channel above. Should there be an error in one of them, however, the stack trace only talks about inability to find that service symbol but otherwise fails to report any errors that may've happened when loading modules from our -L location above. Case in point. In one of the modules, I habitually used Clojury syntax and wrote: (define foo [1 2]) (define foo-service (list (shepherd-service ... #$foo ...))) (define foo-service-type ...) Running the above OS derivation reports: ``` Backtrace: In guix/store.scm: ... bt here ... ice-9/boot-9.scm:1685:16: In procedure raise-exception: error: foo-service-type: unbound variable ``` Backtrace has all modules and files either unknown or gensymed - so not much use. It isn't wrong, but e.g. attempting to [1 2] in Guile repl would tell you "Wrong type to apply: 1" and loading this file would give you the location ... probably :) Feels like defining shepherd services involves some dark arts and buckets of time when you can't tell what went wrong where. Thank you -- Best regards Vlad Kozin --0000000000004c583905f7e20ec2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello. Is it possible to get better error reporting in the follow= ing example?

$ sudo guix system -K -L /home/vlad/Code/fullmeta-guix/channe= l container os.scm

And our os.scm imports some services defined in our= channel above. Should there be an error in one of them, however, the stack= trace only talks about inability to find that service symbol but otherwise= fails to report any errors that may've happened when loading modules f= rom our -L location above.

Case in point. In one of the modules, I habitua= lly used Clojury syntax and wrote:

(define foo [1 2])

(define foo-servi= ce=C2=A0
=C2=A0 (list=C2=A0
=C2=A0 =C2=A0 =C2=A0(shepherd-service ... #$foo ...= )))

(define foo-service-type ...)

Running the above OS derivation report= s:
```
Backtrace:
In guix/store.scm:
... bt here ...
ice-9/boot-9.scm:1685:= 16: In procedure raise-exception:
error: foo-service-type: unbound varia= ble
```

Backtrace has all modules and files either unknown or gensymed - so = not much use.
It isn't wrong, but e.g. attempting to [1 2] in Guile r= epl would tell you "Wrong type to apply: 1" and loading this file= would give you the location ... probably :)

Feels like defining shepherd = services involves some dark arts and buckets of time when you can't tel= l what went wrong where.

Thank you

--
Best regards
Vlad Kozin
--0000000000004c583905f7e20ec2--