Re: [PATCH 0/6] Error reporting and hints for missing modules

2017-11-30 Thread Ludovic Courtès
myglc2 skribis: > ... something like ... > > hint: Did you remove reference to package module that was not found? > hint: Did you forget `(use-package-modules virtualization)'? OK, I’ve made this change (“Did you forget” instead of “Try adding”.) Thanks, Ludo’.

Re: [PATCH 0/6] Error reporting and hints for missing modules

2017-11-13 Thread myglc2
On 11/11/2017 at 23:02 Ludovic Courtès writes: > myglc2 skribis: > >> On 11/10/2017 at 00:04 Ludovic Courtès 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 ad

Re: [PATCH 0/6] Error reporting and hints for missing modules

2017-11-11 Thread Ludovic Courtès
myglc2 skribis: > On 11/10/2017 at 00:04 Ludovic Courtès 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))'. >> >> Fee

Re: [PATCH 0/6] Error reporting and hints for missing modules

2017-11-11 Thread Ludovic Courtès
Julien Lepiller skribis: > I saw that last hint today buveuse I misspelled a type name > (dovecot-configurtation). I understand the hint is great when you forget to > import a service module, but it's not so great when the error is misspelling. > Maybe the solution would be: if the unbound var

Re: [PATCH 0/6] Error reporting and hints for missing modules

2017-11-10 Thread Julien Lepiller
Le 10 novembre 2017 15:47:37 GMT+01:00, myglc2 a écrit : >On 11/10/2017 at 00:04 Ludovic Courtès 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

Re: [PATCH 0/6] Error reporting and hints for missing modules

2017-11-10 Thread myglc2
On 11/10/2017 at 00:04 Ludovic Courtès 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

Re: [PATCH 0/6] Error reporting and hints for missing modules

2017-11-09 Thread Ludovic Courtès
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 matching > `sshx'. If

Re: [PATCH 0/6] Error reporting and hints for missing modules

2017-11-08 Thread Ludovic Courtès
Hi, 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 matching > `sshx'. If yo

Re: [PATCH 0/6] Error reporting and hints for missing modules

2017-11-08 Thread myglc2
Hi Ludo’, 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 matching `sshx'. If you get the line `locati

Re: [PATCH 0/6] Error reporting and hints for missing modules

2017-11-08 Thread myglc2
On 11/08/2017 at 16:33 julien lepiller writes: > Le 2017-11-08 14:09, Ludovic Courtès a écrit : >> Hi! >> >> Here’s an improved version that supports hints (with Texinfo markup and >> i18n) and error reporting with source location info. >> >> Hints try to make suggestions. If you write: >> >> (

Re: [PATCH 0/6] Error reporting and hints for missing modules

2017-11-08 Thread julien lepiller
Le 2017-11-08 14:09, Ludovic Courtès a écrit : Hi! Here’s an improved version that supports hints (with Texinfo markup and i18n) and error reporting with source location info. Hints try to make suggestions. If you write: (use-package-modules qemu) You’ll get: configuration.scm:7:0: erro