guix fails to print friendly help message for unknown command

  • Done
  • quality assurance status badge
Details
3 participants
  • Imran Iqbal
  • Ricardo Wurmus
  • zimoun
Owner
unassigned
Submitted by
Imran Iqbal
Severity
normal
I
I
Imran Iqbal wrote on 7 Jan 2021 06:30
(address . bug-guix@gnu.org)
d095dfa2-3e79-40a2-a93f-924fe91d6878@www.fastmail.com
See below

~ >>> guix --version
guix (GNU Guix) e57b978fc0a6b6298b96c68de4769655d793c7b9
Copyright (C) 2021 the Guix authors
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
~ >>> guix test
Backtrace:
6 (primitive-load "/home/imran/.config/guix/current/bin/g…")
In guix/ui.scm:
2126:2 5 (run-guix-command test)
In ice-9/boot-9.scm:
1731:15 4 (with-exception-handler #<procedure 7f74aeb360c0 at ic…> …)
In guix/ui.scm:
2137:15 3 (_)
In ice-9/boot-9.scm:
2806:4 2 (save-module-excursion #<procedure 7f74aeb4aa20 at ice-…>)
4360:9 1 (_)
In unknown file:
0 (string-prefix? "/" #f #<undefined> #<undefined> #<und…> …)

ERROR: In procedure string-prefix?:
In procedure string-prefix?: Wrong type argument in position 2 (expecting string): #f

It should be printing a helpful message saying "guix: test: command not found" followed by show-guix-usage but does not.
Z
Z
zimoun wrote on 7 Jan 2021 14:38
(name . Imran Iqbal)(address . imran@imraniqbal.org)(address . 45709@debbugs.gnu.org)
CAJ3okZ2OcT=Cx2wGWco_P8DbqxWwTVcnF3VFxfq2V9MBK08FHw@mail.gmail.com
Hi,

On Thu, 7 Jan 2021 at 10:12, Imran Iqbal <imran@imraniqbal.org> wrote:

Toggle quote (3 lines)
> ~ >>> guix test
> Backtrace:

[...]

Toggle quote (3 lines)
> ERROR: In procedure string-prefix?:
> In procedure string-prefix?: Wrong type argument in position 2 (expecting string): #f

Thanks for the report. The commit
cf289d7cfa34315bf13b3114b9a5bf3d3c05ebea introduces the regression.

All the best,
simon
R
R
Ricardo Wurmus wrote on 7 Jan 2021 18:14
(name . zimoun)(address . zimon.toutoune@gmail.com)
871rewhdoy.fsf@elephly.net
zimoun <zimon.toutoune@gmail.com> writes:

Toggle quote (15 lines)
> Hi,
>
> On Thu, 7 Jan 2021 at 10:12, Imran Iqbal <imran@imraniqbal.org> wrote:
>
>> ~ >>> guix test
>> Backtrace:
>
> [...]
>
>> ERROR: In procedure string-prefix?:
>> In procedure string-prefix?: Wrong type argument in position 2 (expecting string): #f
>
> Thanks for the report. The commit
> cf289d7cfa34315bf13b3114b9a5bf3d3c05ebea introduces the regression.

Sorry about that! Thanks to simon’s patch in #45714 this is now fixed.

--
Ricardo
Closed
?