guix deploy error message can be too obscure to understand

  • Open
  • quality assurance status badge
Details
One participant
  • Brice Waegeneire
Owner
unassigned
Submitted by
Brice Waegeneire
Severity
normal
B
B
Brice Waegeneire wrote on 13 May 2020 17:42
(address . bug-guix@gnu.org)
417ceba474851b0a24efa886591952d0@waegenei.re
Hello again,

Guix deploy errors message can be hard to understand, see the following
output for example:

Toggle snippet (13 lines)
$ guix deploy -Lmodules systems/hystou-p04.scm
guix deploy: warning: failed to load '(config workstation)':
no code for module (gnu services lightdm)
The following 1 machine will be deployed:
abricot

guix deploy: deploying to abricot...
sending 0 store items (0 MiB) to '192.168.10.10'...
sending 0 store items (0 MiB) to '192.168.10.10'...
guix deploy: error: failed to deploy abricot: Wrong type argument in
position 1 (expecting struct): ~S

By using “guix repl“ I managed to understand that I was setting a field
to
a undeclared variable: “keyboard-layout“. A stupid mistake on my part
that
should have been trivial to spot took hours instead because the error
message was obscure.

Toggle snippet (8 lines)
(operating-system
(bootloader
(bootloader-configuration
(keyboard-layout keyboard-layout))))

- Brice
?