From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 6EF8NmncIWQL2gAASxT56A (envelope-from ) for ; Mon, 27 Mar 2023 20:11:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wA9ANmncIWR1ZwAAauVa8A (envelope-from ) for ; Mon, 27 Mar 2023 20:11:53 +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 8BB67A1C8 for ; Mon, 27 Mar 2023 20:11:53 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=dNjVvQyF; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679940713; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aItyR6A7suwv7ARaCEgB4oAZ+P9wgl4SPyCMqx6Kr/4=; b=NSKRZsbRxosSBEJ4REMhppVIjjsZ6OdjuvFouldkHVcXZcVww1dQSwXBlYc4z8IadRb2DU Z2yDsTXeNCyXxdBORW9DoH+BRX0fo6vqgebGM2WHib/SQxoJW2Wre3DBn7QiKcaz7kMWQZ LztCFSfHfgLsrANgEYsaRWQxT6wwIGCVekNGcoC7KhLyVuKWYy2+mzn7KG35h/GGkkn/zP AYBYWKl1A+aXNb0b4ymgXeo8UAJlkKnHqgm0sTkk/qM/OKQgsXgJoTxi2/8zsZfa4y1SO4 iWpunJNVqTHL3DFzbh6BWHMSfFX52ACmg3mV6vpfwB6VemScvzCh33961yyPAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679940713; a=rsa-sha256; cv=none; b=i1xPPs6QCg84AnFT0ECOYtolc8JGicxZWELie1walvGhKXHFA7TTYnQDTYOaTZoszf4kI1 xRCrdHIch+Wni7bv/V1z0IF6N913VLuhxHa6Xk+z4jVZVw06f4pMS4rVOmV9hYiQ3BhRQ1 UE0K+FbZcca/FQQTNZGeSgp9aNrs+emnl+qn6soe5RQ3Ldq/s2MsINc9mprOmRnaVTd0ON e2zvP55srcSUzR2ltmI5nHvYFXOfdr19dXC7/gagyHsQAweosEDLm4r39JtoTsxxUZVrbg xx2MwkwrDytmyXYVAbxVZghikO7rAz+ImdaaD1Q2BoVi5NzZH9L4z/1bEALz1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=dNjVvQyF; 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"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgrJC-0002C1-Kz; Mon, 27 Mar 2023 14:11:06 -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 1pgrJ9-0002AN-TH for guix-devel@gnu.org; Mon, 27 Mar 2023 14:11:03 -0400 Received: from koszko.org ([93.95.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgrJ8-0007lx-4e for guix-devel@gnu.org; Mon, 27 Mar 2023 14:11:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=aItyR6A7suwv7ARaCEgB4oAZ+P9wgl4SPyCMqx6Kr/4=; b=dNjVvQyFz1lf9dTtQ+g9JCQp7n x/j2aJRBMQuIwMqVV/1AoDOScb7CHZ6IuBUkQIxDcgm+Iv8iqZ/33fnSzfxRBwaxUpXT5YbI3jmNQ P0VYiX/0IiMkTWzelsBJN2pnCXks4mk7YGFrRbolXt2b+SrLyPSUNdqz/mD00hhvdPTxq+OdgqPsh z7azOeHEshyjsFceu2fCSyj5jYWHRA0T1SdZToHF2qo31vwmLgsfR/w2env7C2DNECS5fbRrLZswf tdzhvsqa0PJLlOQOALX/3tMzIa1t7XJOQyixlIUoovvIh8+jTTCy68hGAItk+o31MDsheX0HD85oE Lry+n02nUIqSIxCgeHTMLno4FZAGeBc0eAvwSYZAdfwyikTb3UW3tPX2fYMvWCsnYF8la96frtoHy h+4hRzkLOtU4vJO5OPXAWXzIVX0fRBKgsKh0rI8AU35paTzmje8csrPbfoaLdAuf/XJi974KiBjoN inCDTkopN6vbU5BCr2kM3nMaFlleDRcnRuLe0ltqSl/SedlzpL3aMJyXgI3RH+x/K5mZ+05t4nCsO AaN1jB4HLAseEPqVXzmUutCIxmoPY4h4uVWhcjaimJ0IdFO2U6GN6MZOGGk5bpqq3pBFZRJ1I7Xt/ FbdEH3H4jJdayfFPtQVofIQeWJyg0xIcWklib+HoA=; Received: from [77.252.47.248] (helo=koszkonutek-tmp.pl.eu.org) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pgrJ5-0004cT-Fu; Mon, 27 Mar 2023 20:10:59 +0200 Date: Mon, 27 Mar 2023 20:10:57 +0200 To: Vladilen Kozin Cc: guix-devel@gnu.org Subject: Re: guix system container and friends fail to report intermediate errors Message-ID: <20230327201057.76481cff.koszko@koszko.org> In-Reply-To: References: X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_//+uj.OjPjhNJkkRi6d50KD+"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org 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, SPF_HELO_PASS=-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: , X-Migadu-Queue-Id: 8BB67A1C8 X-Spam-Score: -6.63 X-Migadu-Spam-Score: -6.63 X-Migadu-Scanner: scn0.migadu.com Reply-to: Wojtek Kosior From: Wojtek Kosior via "Development of GNU Guix and the GNU System distribution." 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 X-TUID: wPLG2JiKNa/C --Sig_//+uj.OjPjhNJkkRi6d50KD+ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > Hello. Is it possible to get better error reporting in the following > example? >=20 > $ sudo guix system -K -L /home/vlad/Code/fullmeta-guix/channel container > os.scm >=20 > [...] I also face this very problem when using the "-L" switch with other commands, e.g. `guix shell`. Is there some missed-by-us way to get error reports from modules? Wojtek -- (sig_start) website: https://koszko.org/koszko.html PGP: https://koszko.org/key.gpg fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A =E2=99=A5 R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ=3D=3D | =C3=B7 c2luIHNlcGFyYXR= lZCBtZSBmcm9tIEhpbQ=3D=3D =E2=9C=9D YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ=3D=3D | ? U2hhbGwgSSBiZWNvbWUg= SGlzIGZyaWVuZD8=3D -- (sig_end) On Mon, 27 Mar 2023 14:52:26 +0100 Vladilen Kozin wrote: > Hello. Is it possible to get better error reporting in the following > example? >=20 > $ sudo guix system -K -L /home/vlad/Code/fullmeta-guix/channel container > os.scm >=20 > 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 abo= ut > inability to find that service symbol but otherwise fails to report any > errors that may've happened when loading modules from our -L location abo= ve. >=20 > Case in point. In one of the modules, I habitually used Clojury syntax and > wrote: >=20 > (define foo [1 2]) >=20 > (define foo-service > (list > (shepherd-service ... #$foo ...))) >=20 > (define foo-service-type ...) >=20 > 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 > ``` >=20 > 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 :) >=20 > Feels like defining shepherd services involves some dark arts and buckets > of time when you can't tell what went wrong where. >=20 > Thank you >=20 --Sig_//+uj.OjPjhNJkkRi6d50KD+ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCZCHcMQAKCRBLxSIcWnn9 GmJaAP9CX53/4V6fEBSTTP8GjYHGDjuJGIg/hvonVS12UeteFgD9Gyq86abFbYj1 AIRE8prwVmT6vq4GEtjmjyhG9IokNQw= =7wLu -----END PGP SIGNATURE----- --Sig_//+uj.OjPjhNJkkRi6d50KD+--