GNU bug report logs - #45709
guix fails to print friendly help message for unknown command

Previous Next

Package: guix;

Reported by: "Imran Iqbal" <imran <at> imraniqbal.org>

Date: Thu, 7 Jan 2021 06:12:02 UTC

Severity: normal

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 45709 in the body.
You can then email your comments to 45709 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#45709; Package guix. (Thu, 07 Jan 2021 06:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Imran Iqbal" <imran <at> imraniqbal.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 07 Jan 2021 06:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Imran Iqbal" <imran <at> imraniqbal.org>
To: bug-guix <at> gnu.org
Subject: guix fails to print friendly help message for unknown command
Date: Thu, 07 Jan 2021 00:30:27 -0500
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.




Information forwarded to bug-guix <at> gnu.org:
bug#45709; Package guix. (Thu, 07 Jan 2021 13:40:02 GMT) Full text and rfc822 format available.

Message #8 received at 45709 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Imran Iqbal <imran <at> imraniqbal.org>
Cc: 45709 <at> debbugs.gnu.org
Subject: Re: bug#45709: guix fails to print friendly help message for unknown
 command
Date: Thu, 7 Jan 2021 14:38:42 +0100
Hi,

On Thu, 7 Jan 2021 at 10:12, Imran Iqbal <imran <at> 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.

All the best,
simon




Reply sent to Ricardo Wurmus <rekado <at> elephly.net>:
You have taken responsibility. (Thu, 07 Jan 2021 17:15:02 GMT) Full text and rfc822 format available.

Notification sent to "Imran Iqbal" <imran <at> imraniqbal.org>:
bug acknowledged by developer. (Thu, 07 Jan 2021 17:15:02 GMT) Full text and rfc822 format available.

Message #13 received at 45709-done <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 45709-done <at> debbugs.gnu.org, Imran Iqbal <imran <at> imraniqbal.org>
Subject: Re: bug#45709: guix fails to print friendly help message for
 unknown command
Date: Thu, 07 Jan 2021 18:14:21 +0100
zimoun <zimon.toutoune <at> gmail.com> writes:

> Hi,
>
> On Thu, 7 Jan 2021 at 10:12, Imran Iqbal <imran <at> 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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 05 Feb 2021 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 78 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.