From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 0/6] Error reporting and hints for missing modules Date: Fri, 10 Nov 2017 00:04:18 +0100 Message-ID: <87vaijgikt.fsf@gnu.org> References: <87zi7xwvso.fsf_-_@gnu.org> <20171108130921.25202-1-ludo@gnu.org> <72bfb7a9ff14c437a704381f807ce2f7@lepiller.eu> <86wp30psz4.fsf@gmail.com> <86r2t8y4gt.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]:50864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCvrz-0006Ey-CE for guix-devel@gnu.org; Thu, 09 Nov 2017 18:04:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCvry-0005Go-K7 for guix-devel@gnu.org; Thu, 09 Nov 2017 18:04:23 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:35820) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eCvry-0005Eo-Cl for guix-devel@gnu.org; Thu, 09 Nov 2017 18:04:22 -0500 In-Reply-To: <86r2t8y4gt.fsf@gmail.com> (myglc2@gmail.com's message of "Wed, 08 Nov 2017 14:07:14 -0500") 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" To: myglc2 Cc: guix-devel@gnu.org Hello, myglc2 skribis: > I built and played with this. I see you also provide a search hint when > you don't find an obvious match, as in ... > > sys.scm:3:0: error: module (gnu services sshx) not found > hint: You may use `guix system search sshx' to search for a service match= ing `sshx'. If you get the line `location: gnu/services/foo.scm:188:2', ad= d `foo' to the `use-service-modules' > form. Thrilled by this idea, I pushed an unbound-variable handler that can provide hints, such as: configuration.scm:88:19: zip: unbound variable hint: Try adding `(use-modules (gnu packages compression))'. Feedback welcome! https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3Da2985bb101faac9f0= 85176e0329488b91b81dfb5 Ludo=E2=80=99.