[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/6] Error reporting and hints for missing modules
From: |
myglc2 |
Subject: |
Re: [PATCH 0/6] Error reporting and hints for missing modules |
Date: |
Fri, 10 Nov 2017 09:47:37 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
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 played with this. If I follow some of the hints literally
they lead me astray. Here are some suggested hint rewording.
Note: You can reproduce the errors/hints below with the attached files.
HTH - George
HINT REWORDING SUGGESTIONS:
*** test2: "NON EXISTANT PACKAGE MODULE (qemu) for qemu PACKAGE SPECIFIED"
The error messages ...
/root/ctest/test2:4:0: error: module (gnu packages qemu) not found
hint: Try adding `(use-package-modules virtualization)'.
... are followed literally in test2.fix, which does not fix the
problem because the stale and non-existant 'qemu' package module
reference also needs to be removed.
Maybe a better hint would be ...
hint: Remove the reference to the pachage module that was not
hint: found and add `(use-package-modules virtualization)'.
*** test3: 'NON EXISTANT (openssh) SERVICE MODULE specified'
This has the same conceptual problem as test2 above.
The error messages ...
/root/ctest/test3:3:0: error: module (gnu services openssh) not found
hint: Try adding `(use-service-modules ssh)'.
... are followed literally in test3.fix, which does not fix the
problem because the non-existant 'openssh' service module
reference also needs to be removed.
Maybe a better hint would be ...
hint: Remove the reference to the service module that was not
hint: found and add `(use-service-modules ssh)'.
*** test4: "SERVICE MODULE (ssh) for openssh-service-type SERVICE MISSING"
A more helpful hint here ...
/root/ctest/test4:46:19: /root/ctest/test4:46:19: openssh-service-type: unbound
variable
hint: Did you forget a `use-modules' form?
... would be ...
hint: Try adding `(use-service-modules ssh)'.
***
VERSION INFO:
74bea6a03 gnu: linux-libre: Update to 4.13.12.
make check failed as reported in bug#29245 but I don't think those
errors affect what I am seeing here.
TEST FILES:
test0.scm
Description: Binary data
try.sh
Description: Bourne shell script
try.sh.log
Description: Binary data
- [PATCH 2/6] ui: Define and honor '&error-location' and '&fix-hint' conditions., (continued)
- [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
- Re: [PATCH 6/6] gnu: Improve error reporting of the use-.*modules macros., Ludovic Courtès, 2017/11/11
- Re: [PATCH 6/6] gnu: Improve error reporting of the use-.*modules macros., Chris Marusich, 2017/11/11
- Re: [PATCH 0/6] Error reporting and hints for missing modules, julien lepiller, 2017/11/08
- Re: [PATCH 0/6] Error reporting and hints for missing modules, myglc2, 2017/11/08
- Re: [PATCH 0/6] Error reporting and hints for missing modules, myglc2, 2017/11/08
- Re: [PATCH 0/6] Error reporting and hints for missing modules, Ludovic Courtès, 2017/11/08
- Re: [PATCH 0/6] Error reporting and hints for missing modules, Ludovic Courtès, 2017/11/09
- Re: [PATCH 0/6] Error reporting and hints for missing modules,
myglc2 <=
- Re: [PATCH 0/6] Error reporting and hints for missing modules, Julien Lepiller, 2017/11/10
- Re: [PATCH 0/6] Error reporting and hints for missing modules, Ludovic Courtès, 2017/11/11
- Re: [PATCH 0/6] Error reporting and hints for missing modules, Ludovic Courtès, 2017/11/11
- Re: [PATCH 0/6] Error reporting and hints for missing modules, myglc2, 2017/11/13
- Re: [PATCH 0/6] Error reporting and hints for missing modules, Ludovic Courtès, 2017/11/30
- Re: The usability of Guix configurations, Hartmut Goebel, 2017/11/07
Re: The usability of Guix configurations, myglc2, 2017/11/06
Re: The usability of Guix configurations, myglc2, 2017/11/06
Re: The usability of Guix configurations, myglc2, 2017/11/07