guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The usability of Guix configurations


From: julien lepiller
Subject: Re: The usability of Guix configurations
Date: Tue, 07 Nov 2017 12:05:12 +0100
User-agent: Roundcube Webmail/1.3.1

Le 2017-11-07 02:56, myglc2 a écrit :
Please note: these replies are separated by topics in an effort to make the
threads more topical ...

On 11/06/2017 at 17:16 Leo Famulari writes:

On Mon, Nov 06, 2017 at 03:12:11PM -0500, myglc2 wrote:
[...]
Guix config errors are reported as raw scheme errors which are not
user-friendly, except, perhaps, to guile users ;-) Could we improve this
situation by adding config troubleshooting guidance to the doc?

Yes, we do try to add helpful error messages, although obviously there
is a lot more work to be done.

I didn't mean this point critically. Rather as a statement of fact. When
I said ...

Could we improve this situation by adding config troubleshooting
guidance to the doc?

... I was thinking something like ...

vvvvvvvvvvvvvvvvvv

Troubleshooting your config file:

If you get an error like:

ice-9/boot-9.scm:[...] no code for module (gnu packages <package name>)

You have either specified a package name that does not exist, or your
(use-package-modules <package module names>) does not contain the name
of a package module that contains the definition of <package name>.

You can determine which, if any, module contains a package definition by
yada yada yada

^^^^^^^^^^^^^^^^^^

... thinking that then there would be a search hit in the doc for 'no
code for module' which might enable some users to understand what they
are doing wrong.

WDYT? - George

Hi George,

Since we encourage users to use use-package-modules etc, I think it's better to catch this error and explain it to users as soon as it happens. It's more friendly for users than a troubleshooting section in the manual. This patch
would print:


Package module "abc" does not exist.
ERROR: In procedure scm-error:
ERROR: check "use-package-modules" line in your configuration.


If you try to use something like (use-package-modules linux abc), and
similar messages for services and system modules.

WDYT?

Attachment: 0001-Catch-use-modules-errors-in-configuration.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]