From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: Re: [PATCH 0/6] Error reporting and hints for missing modules Date: Wed, 08 Nov 2017 14:07:14 -0500 Message-ID: <86r2t8y4gt.fsf@gmail.com> References: <87zi7xwvso.fsf_-_@gnu.org> <20171108130921.25202-1-ludo@gnu.org> <72bfb7a9ff14c437a704381f807ce2f7@lepiller.eu> <86wp30psz4.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]:38251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCVh2-0004KW-Aq for guix-devel@gnu.org; Wed, 08 Nov 2017 14:07:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCVgz-00032d-5b for guix-devel@gnu.org; Wed, 08 Nov 2017 14:07:20 -0500 Received: from mail-qt0-x22e.google.com ([2607:f8b0:400d:c0d::22e]:55417) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eCVgz-00032N-18 for guix-devel@gnu.org; Wed, 08 Nov 2017 14:07:17 -0500 Received: by mail-qt0-x22e.google.com with SMTP id v41so4670773qtv.12 for ; Wed, 08 Nov 2017 11:07:17 -0800 (PST) In-Reply-To: <86wp30psz4.fsf@gmail.com> (myglc2@gmail.com's message of "Wed, 08 Nov 2017 12:42:39 -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: julien lepiller Cc: guix-devel@gnu.org Hi Ludo=E2=80=99, 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 matchin= g `sshx'. If you get the line `location: gnu/services/foo.scm:188:2', add = `foo' to the `use-service-modules' form. This is very nice indeed. Based on testing, may I suggest the hint rewording shown below ... On 11/08/2017 at 12:42 myglc2 writes: > On 11/08/2017 at 16:33 julien lepiller writes: > >> Le 2017-11-08 14:09, Ludovic Court=C3=A8s a =C3=A9crit=C2=A0: >>> Hi! >>> >>> Here=E2=80=99s an improved version that supports hints (with Texinfo ma= rkup and >>> i18n) and error reporting with source location info. >>> >>> Hints try to make suggestions. If you write: >>> >>> (use-package-modules qemu) >>> >>> You=E2=80=99ll get: >>> >>> configuration.scm:7:0: error: module (gnu packages qemu) not found >>> hint: Did you mean `(use-package-modules virtualization)'? hint: Try adding `(use-package-modules virtualization)' >>> >>> If you write: >>> >>> (use-service-modules openssh) >>> >>> You get: >>> >>> configuration.scm:9:0: error: module (gnu services openssh) not found >>> hint: Did you mean `(use-service-modules ssh)'? hint: Try adding `(use-service-modules ssh)'