[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reporting module errors
From: |
myglc2 |
Subject: |
Re: Reporting module errors |
Date: |
Tue, 07 Nov 2017 20:26:38 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
On 11/07/2017 at 23:47 Ludovic Courtès writes:
> Hello!
>
> You’re too fast! :-)
>
> julien lepiller <address@hidden> skribis:
>
[...]
>
> I’d propose a variant of it, see below. With this, one gets a message
> 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’t great, but I
> think we’d need to provide a homogeneous and internationalized API 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 ‘&message’?
>
> Speaking of hints, we should have something that suggests a module name
> based on the Levenshtein distance with available modules. :-)
>
> Thanks,
> Ludo’.
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=foo | 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
- Re: The usability of Guix configurations, (continued)
- Re: The usability of Guix configurations, julien lepiller, 2017/11/07
- Re: The usability of Guix configurations, Hartmut Goebel, 2017/11/07
- Re: The usability of Guix configurations, julien lepiller, 2017/11/07
- Re: The usability of Guix configurations, myglc2, 2017/11/07
- Re: The usability of Guix configurations, julien lepiller, 2017/11/07
- Re: The usability of Guix configurations, myglc2, 2017/11/07
- [PATCH] Re: The usability of Guix configurations, julien lepiller, 2017/11/07
- Message not available
- Re: [PATCH] Re: The usability of Guix configurations, Julien Lepiller, 2017/11/07
- Re: [PATCH] Re: The usability of Guix configurations, myglc2, 2017/11/07
- Reporting module errors, Ludovic Courtès, 2017/11/07
- Re: Reporting module errors,
myglc2 <=
- Re: Reporting module errors, Hartmut Goebel, 2017/11/08
- Re: Reporting module errors, Ludovic Courtès, 2017/11/08
- [PATCH 0/6] Error reporting and hints for missing modules, Ludovic Courtès, 2017/11/08
- [PATCH 1/6] ui: Introduce (guix i18n)., Ludovic Courtès, 2017/11/08
- [PATCH 3/6] services: 'fold-service-types' honors its seed., Ludovic Courtès, 2017/11/08
- [PATCH 5/6] services: Add 'lookup-service-types'., Ludovic Courtès, 2017/11/08
- [PATCH 4/6] services: 'fold-service-types' includes (gnu services)., Ludovic Courtès, 2017/11/08
- [PATCH 2/6] ui: Define and honor '&error-location' and '&fix-hint' conditions., Ludovic Courtès, 2017/11/08
- [PATCH 6/6] gnu: Improve error reporting of the use-.*modules macros., Ludovic Courtès, 2017/11/08
- Re: [PATCH 6/6] gnu: Improve error reporting of the use-.*modules macros., Chris Marusich, 2017/11/10