GNU bug report logs - #62206
"guix import hackage" not working

Previous Next

Package: guix;

Reported by: Philip Kaludercic <philipk <at> posteo.net>

Date: Wed, 15 Mar 2023 16:05:01 UTC

Severity: normal

To reply to this bug, email your comments to 62206 AT debbugs.gnu.org.

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#62206; Package guix. (Wed, 15 Mar 2023 16:05:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Philip Kaludercic <philipk <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 15 Mar 2023 16:05:02 GMT) Full text and rfc822 format available.

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

From: Philip Kaludercic <philipk <at> posteo.net>
To: bug-guix <at> gnu.org
Subject: "guix import hackage" not working
Date: Wed, 15 Mar 2023 16:04:54 +0000
Hi, I was interested in writing a package specification for the haskell
language server, but when I attempt to import the package I encounter an
undecipherable stack trace:

--8<---------------cut here---------------start------------->8---
$ guix import hackage haskell-language-server
Backtrace:
In guix/import/cabal.scm:
   875:28 19 (eval _)
   875:28 18 (eval _)
   875:28 17 (eval _)
   875:28 16 (eval _)
   875:28 15 (eval _)
   875:28 14 (eval _)
   875:28 13 (eval _)
   875:28 12 (eval _)
   875:28 11 (eval _)
   875:28 10 (eval _)
   875:28  9 (eval _)
   875:28  8 (eval _)
   875:28  7 (eval _)
   875:28  6 (eval _)
   875:28  5 (eval _)
   875:28  4 (eval _)
   875:13  3 (eval _)
   868:32  2 (eval (section library #f (("import" ("common-d…")) …)))
   872:13  1 (eval _)
In unknown file:
           0 (append #f (("exposed-modules" ("Ide.Arguments Id…")) …))

ERROR: In procedure append:
In procedure append: Wrong type argument in position 1 (expecting empty list): #f
--8<---------------cut here---------------end--------------->8---

What can I do to debug this?  For context this is my current version and
I am using Guix on a foreign system via Debian:

--8<---------------cut here---------------start------------->8---
$ guix --version
guix (GNU Guix) 8a479494633395f5a4a088e2c52380bcb22f4fe8
Copyright (C) 2023 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.
--8<---------------cut here---------------end--------------->8---




Information forwarded to bug-guix <at> gnu.org:
bug#62206; Package guix. (Mon, 03 Apr 2023 16:58:03 GMT) Full text and rfc822 format available.

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

From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: Philip Kaludercic <philipk <at> posteo.net>, 62206 <at> debbugs.gnu.org
Subject: Re: bug#62206: "guix import hackage" not working
Date: Mon, 03 Apr 2023 18:48:08 +0200
Hi,

On mer., 15 mars 2023 at 16:04, Philip Kaludercic <philipk <at> posteo.net> wrote:

> --8<---------------cut here---------------start------------->8---
> $ guix import hackage haskell-language-server
> Backtrace:
> In guix/import/cabal.scm:
>    875:28 19 (eval _)
>    875:28 18 (eval _)
>    875:28 17 (eval _)
>    875:28 16 (eval _)
>    875:28 15 (eval _)
>    875:28 14 (eval _)
>    875:28 13 (eval _)
>    875:28 12 (eval _)
>    875:28 11 (eval _)
>    875:28 10 (eval _)
>    875:28  9 (eval _)
>    875:28  8 (eval _)
>    875:28  7 (eval _)
>    875:28  6 (eval _)
>    875:28  5 (eval _)
>    875:28  4 (eval _)
>    875:13  3 (eval _)
>    868:32  2 (eval (section library #f (("import" ("common-d…")) …)))
>    872:13  1 (eval _)
> In unknown file:
>            0 (append #f (("exposed-modules" ("Ide.Arguments Id…")) …))
>
> ERROR: In procedure append:
> In procedure append: Wrong type argument in position 1 (expecting empty list): #f
> --8<---------------cut here---------------end--------------->8---
>
> What can I do to debug this?

That’s probably because something is missing in the Cabal parser.
Well, I have not investigated but considering bug#38946 [1] which reads
something very similar,

--8<---------------cut here---------------start------------->8---
$ guix import hackage cabal-helper
Backtrace:
In guix/import/cabal.scm:
   875:28 19 (eval _)
   875:28 18 (eval _)
   875:28 17 (eval _)
   875:28 16 (eval _)
   875:28 15 (eval _)
   875:28 14 (eval _)
   875:28 13 (eval _)
   875:28 12 (eval _)
   875:28 11 (eval _)
   875:28 10 (eval _)
   875:28  9 (eval _)
   875:28  8 (eval _)
   875:28  7 (eval _)
   875:28  6 (eval _)
   875:28  5 (eval _)
   875:28  4 (eval _)
   875:13  3 (eval _)
   868:32  2 (eval (section common "c-h-internal" (("import" ("build-deps, extensions")) ("other-modules" ("CabalHelper.Compiletime.Cabal CabalHe…")) …)))
   872:13  1 (eval _)
In unknown file:
           0 (append #f (("other-modules" ("CabalHelper.Compiletime.Cabal CabalHelper.Compiletime.CompPrograms CabalHelper.Compiletime.Compat.Envir…")) …))

ERROR: In procedure append:
In procedure append: Wrong type argument in position 1 (expecting empty list): #f
--8<---------------cut here---------------end--------------->8---

Well, I somehow agree with Robert’s comment in [1], quoting:

        Note that there’s quite a few issues with the cabal parser, and
        the format is pretty baroque, to the extent that I wonder
        whether it wouldn’t be better to delegate the parsing to cabal
        itself.

1: https://issues.guix.gnu.org/issue/38946

Cheers,
simon




This bug report was last modified 1 year and 16 days ago.

Previous Next


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