From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: Re: Reporting module errors Date: Tue, 07 Nov 2017 20:26:38 -0500 Message-ID: <8660alr25t.fsf@gmail.com> References: <868tfjw4is.fsf@gmail.com> <20171106221621.GA2534@jasmine.lan> <86o9oex34v.fsf@gmail.com> <779b1b6f2043e03a2f911981142e7740@lepiller.eu> <777f3534955ec61a520ff5f9b7054673@lepiller.eu> <86tvy6tbz5.fsf@gmail.com> <86efpat6z6.fsf@gmail.com> <87zi7xwvso.fsf_-_@gnu.org> 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]:41075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCF8g-0001XR-Kj for guix-devel@gnu.org; Tue, 07 Nov 2017 20:26:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCF8b-0008WN-NZ for guix-devel@gnu.org; Tue, 07 Nov 2017 20:26:46 -0500 In-Reply-To: <87zi7xwvso.fsf_-_@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\?\= \=\?utf-8\?Q\?\=22's\?\= message of "Tue, 07 Nov 2017 23:47:35 +0100") 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org On 11/07/2017 at 23:47 Ludovic Court=C3=A8s writes: > Hello! > > You=E2=80=99re too fast! :-) > > julien lepiller skribis: > [...] > > I=E2=80=99d propose a variant of it, see below. With this, one gets a me= ssage > like: > > /tmp/config.scm:6:0: module (gnu packages foobar) could not be found > > where line 6 is: > > (use-package-modules foobar) > > How does that sound? > > It lacks the hints that you were proposing, which isn=E2=80=99t great, bu= t I > think we=E2=80=99d need to provide a homogeneous and internationalized AP= I in > (guix ui) if we are to display hints. But overall I like the idea of > providing hints somehow. > > Perhaps we could simply introduce another condition type for hints as a > first step, similar to =E2=80=98&message=E2=80=99? > > Speaking of hints, we should have something that suggests a module name > based on the Levenshtein distance with available modules. :-) > > Thanks, > Ludo=E2=80=99. FWIW, if you give me the choice between no hints and the hints produced by julien's patch translated into a random foreign (to me) language, I strongly prefer the hints. Why? Because I am will benefit from the embedded data/examples (e.g., `guix package --show=3Dfoo | grep location`, which, by the way, will never be translated) even when I do not understand the surrounding words. Wouldn't speakers of any language feel this way about these specific hints? WDYT? - George