From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cBxtBhxSYl9zeQAA0tVLHw (envelope-from ) for ; Wed, 16 Sep 2020 17:57:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IG5CAhxSYl8oSAAAB5/wlQ (envelope-from ) for ; Wed, 16 Sep 2020 17:57:48 +0000 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 9F1439404D8 for ; Wed, 16 Sep 2020 17:57:47 +0000 (UTC) Received: from localhost ([::1]:42798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIbgg-0007rd-IK for larch@yhetil.org; Wed, 16 Sep 2020 13:57:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIbgT-0007rN-Uc for guix-devel@gnu.org; Wed, 16 Sep 2020 13:57:33 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21118) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIbgR-0005IQ-By; Wed, 16 Sep 2020 13:57:33 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1600279046; cv=none; d=zohomail.com; s=zohoarc; b=jKDgfrpCPq//4/Sxp6KfklIo+f9nipqJsFzJJ0e8JbcmHfx0H5dzFW7G2yMsgwj8F8vUsOVFcnJsngegvR7jUDdvmdevihjRie40ryyHcyTSNZaPy1gjb7EzuNXW0CnK0Iz8aS9SitBoxoRmt+pno4nltvEQ4aMkfx2F+WJTXFc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600279046; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=g1FFi2zSPs2go+kx2cJ7RvwWybo7FoKc9aw9aG1TeVg=; b=a9UGpgGfuNn3W7LpzkOH6A+wCjLQCZXK4+R1drkXrnCtR5YLTTrBgYdcj2U0K++1AMCQjdRf+BcDrhiK/bpiVCC/onBXwM9K514CtopvvzF0J11AcDPsNW7t6hgvZaZel5JkDk0TB5jk6rWazX7s4um7rPsog7NYDdd37MSHLWA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1600279046; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=g1FFi2zSPs2go+kx2cJ7RvwWybo7FoKc9aw9aG1TeVg=; b=Ls3Eq9IMIZhoN6nB2ar2T4KqcWtTVg16eCHssd65VHOksa/rbUTUCFxwwlXFXSuK 8T78DTgtP2t7xrxwqDhZhlw8ULCgZR25B+bnhmfNooFGndjWak8FPMKY/KHyP/m5PkT 7AJBnEKCj9izcPBgKlPXDnSjVLsi/lt2gMH6j824= Received: from localhost (p54ad4084.dip0.t-ipconnect.de [84.173.64.132]) by mx.zohomail.com with SMTPS id 1600279045016491.9598494231632; Wed, 16 Sep 2020 10:57:25 -0700 (PDT) References: <874ko14bjt.fsf@spesh.com> <87363hmzx9.fsf@gnu.org> User-agent: mu4e 1.4.13; emacs 27.1 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: =?utf-8?Q?=E2=80=98guix_environment=E2=80=99?= vs. =?utf-8?Q?=E2=80=98=2Ebash=5Fprofile=E2=80=99?= In-reply-to: <87363hmzx9.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Wed, 16 Sep 2020 19:58:42 +0200 Message-ID: <87tuvxvc19.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/16 11:20:28 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, Danny O'Brien , Brendan Tildesley Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=elephly.net header.s=zoho header.b=Ls3Eq9IM; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 1.99 X-TUID: ygicqMoSj89G Ludovic Court=C3=A8s writes: > Hi! > > Danny O'Brien skribis: > >> Brendan Tildesley writes: >> >>> Doom Emacs has a tool `doom doctor' for diagnosing common >>> errors. Perhaps there >>> could be a `guix doctor' that would check for such things. `guix >>> offload test' >>> is already somewhat like that but for offloading, althought it could >>> improve. >>> Any bug report from a user where the solution is to tell them to fix >>> their >>> environment instead of changing guix could also have a check added >>> to guix >>> doctor. > > Interesting. Any idea how this particular issue could be checked for? > If we can come up with an automated way to determine that =E2=80=9Csometh= ing=E2=80=99s > wrong=E2=80=9D, we might as well get =E2=80=98guix environment=E2=80=99 t= o display a hint. The checks would have to be pretty self-contained and carefully ordered. Imagine LD_LIBRARY_PATH is set to something terribly incompatible: we might not even be able to launch Guile then! These tests would also have to work for older Guixes, e.g. when =E2=80=9Cguix pull=E2=80=9D was us= ed but the effective =E2=80=9Cguix=E2=80=9D command is /usr/local/bin/guix or even ~/.guix-profile/bin/guix (from a misguided invocation of =E2=80=9Cguix inst= all guix=E2=80=9D). This is really tricky to get right when you can=E2=80=99t trust the executi= on environment. > For example, =E2=80=98guix=E2=80=99 displays hints for unbound variables = or misnamed > modules because these are common mistakes. I think these hints are excellent! I=E2=80=99m often surprised at how good= and useful they are. I have sometimes been frustrated with the lack of *any* output in case of errors. It is possible to get Guix to just print an obscure error and get neither a backtrace nor a hint. Of course I can=E2=80=99t remember= now how to replicate this, but this could be a good exercise for new contributors: do whatever you can to make Guix barf! One thing that usually only hits contributors is a barrage of unrelated error messages (with repeated hints to include different modules) that culminate in something silly like =E2=80=9Cunknown package=E2=80=9D for an = unrelated package that obviously exists. I=E2=80=99m sure you=E2=80=99ve also encoun= tered this before while adding or upgrading packages. --=20 Ricardo