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: Sat, 11 Nov 2017 23:02:40 +0100 Message-ID: <87zi7seanz.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> <87vaijgikt.fsf@gnu.org> <86shdmtcl2.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]:55227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDdrQ-0000Qe-HW for guix-devel@gnu.org; Sat, 11 Nov 2017 17:02:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDdrP-0000lp-Qp for guix-devel@gnu.org; Sat, 11 Nov 2017 17:02:44 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:44780) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eDdrP-0000lZ-K4 for guix-devel@gnu.org; Sat, 11 Nov 2017 17:02:43 -0500 In-Reply-To: <86shdmtcl2.fsf@gmail.com> (myglc2@gmail.com's message of "Fri, 10 Nov 2017 09:47:37 -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 myglc2 skribis: > On 11/10/2017 at 00:04 Ludovic Court=C3=A8s writes: >> >> 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! > > I built and played with this. If I follow some of the hints literally > they lead me astray. Here are some suggested hint rewording. Again, it=E2=80=99s a hint, it could be wrong. So perhaps that=E2=80=99s a good reason for =E2=80=9CDid you mean xyz?=E2= =80=9D, ending with a question mark (like GCC does), rather than a sentence that looks assertive. In the example above, it may be less confusing if we write: Did you forget (use-modules =E2=80=A6)? With the question mark, the user understands that this may or may not be the cause of the error. Thoughts? Ludo=E2=80=99.