From unknown Wed Jun 18 23:11:16 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#62206 <62206@debbugs.gnu.org> To: bug#62206 <62206@debbugs.gnu.org> Subject: Status: "guix import hackage" not working Reply-To: bug#62206 <62206@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:11:16 +0000 retitle 62206 "guix import hackage" not working reassign 62206 guix submitter 62206 Philip Kaludercic severity 62206 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 15 12:04:40 2023 Received: (at submit) by debbugs.gnu.org; 15 Mar 2023 16:04:40 +0000 Received: from localhost ([127.0.0.1]:40409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcTcG-0000t2-Dd for submit@debbugs.gnu.org; Wed, 15 Mar 2023 12:04:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:59426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcTcF-0000sv-1o for submit@debbugs.gnu.org; Wed, 15 Mar 2023 12:04:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pcTcE-0006S8-SG for bug-guix@gnu.org; Wed, 15 Mar 2023 12:04:38 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pcTcC-0000Yi-MN for bug-guix@gnu.org; Wed, 15 Mar 2023 12:04:38 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 39EB2240568 for ; Wed, 15 Mar 2023 17:04:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678896273; bh=sHJBknKS3B6niZJ4lsHRz1wLKLciPKceGNwOgJwZeBk=; h=From:To:Subject:Date:From; b=f8Z4fhCbtANzxDEhlY1CmQcfUROEJVQ5az8LrhsPDbhEerMfSjWFzzjuYeuo4AyJd lxbrRuLLlei8cIHxttL6/wMWwv2WRoPv6MK8V+dJw2fQtw2vXjFC0kp+n3iljrcVKf 5V0MevypkL5l9m7FIgpefMXd2BQKQD0X4/7KdzRjARfFrHbMlX27ii+s0fmyXiy+yY YJhfgvIEp4nOmhmterKyQuLmQ9+X6HikEUcO9/UmM8i2UnV1XS1Imhcx/g+i1l2+4s kDHb932C0y0auf/tlge6ATSl3561CuWqjV5WHMc8/XOUGaX8gBEEQNSHF9KeA4mSbK w5GsHYYOwPMuw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PcFZl6hf0z9rxK for ; Wed, 15 Mar 2023 17:04:30 +0100 (CET) From: Philip Kaludercic To: bug-guix@gnu.org Subject: "guix import hackage" not working Date: Wed, 15 Mar 2023 16:04:54 +0000 Message-ID: <874jqmj909.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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=E2=80=A6")) = =E2=80=A6))) 872:13 1 (eval _) In unknown file: 0 (append #f (("exposed-modules" ("Ide.Arguments Id=E2=80=A6")) = =E2=80=A6)) ERROR: In procedure append: In procedure append: Wrong type argument in position 1 (expecting empty lis= t): #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 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--- From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 03 12:58:00 2023 Received: (at 62206) by debbugs.gnu.org; 3 Apr 2023 16:58:00 +0000 Received: from localhost ([127.0.0.1]:45135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjNVI-00019W-3b for submit@debbugs.gnu.org; Mon, 03 Apr 2023 12:58:00 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]:41250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjNVF-00018T-Qf for 62206@debbugs.gnu.org; Mon, 03 Apr 2023 12:57:58 -0400 Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-2d17b1b21f1so553352f8f.1 for <62206@debbugs.gnu.org>; Mon, 03 Apr 2023 09:57:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680541072; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Y9pKgNiwtcAx+2u3Ub4b6K9+VwWs1lC+OiEdnd1abjo=; b=doAe0pgiKv4A0P6cwT1MOd7Il7uJjHAxAQirmt7GOQFTV/Sd/7eeY6ElAWs97bYJvb 692x/PUquqlWiFxMXiVRr6ji63rInvGwVrXePC3ELpqZ6TXQG3EDGYBwRba5wS4VkM7o toJVeYogCYGsiBOryE/1NI3A3UQl5WgEhHEG7UC8RWWy4UZvCNZgduLoXKdmdRdA1Ahs cLRxNAN5Zbiq9fVYZww+is6ieoahErrXSlLhNJRpIvIBx5V4C1w8Kc0Nm1PCOdadPR1x 8p2i6kolOqOkEK1vUawXrKT7rhl9ulGFh6eVR3teuv+b825wjjaCeGnN0xZDhp3bcMaL jT8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680541072; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=Y9pKgNiwtcAx+2u3Ub4b6K9+VwWs1lC+OiEdnd1abjo=; b=AzykebrigQIxJoG0bSMIV+MBL6u1PWUoqb3JigprTp8czZJYAWEN2wOXiO/ZVPgRUy xzfsnH14HyKrm7waOouSyT0JuE23za0yXlkhAFxrugWob9zv3x7P9LUKSMZ0f7oXN0hg C4lC4bcgtVCqkbH8197lNfhh2viz5zj0/cKGrzVvUeDhdhoNaFTIhXAe+LOm6Ll65b1p 51e39oJd7R4F/5ZC1a4I2jdwKIo7ePgmNqsgkT9PJzv13Br1YivWbNnt768CLhezpi78 P/fpjn1mlRGWPN+Fix0OQWxcuUJH4KvFU46WVPcKzZe2aGhFMyEtIP4hvHNqsFkiuRy5 geIQ== X-Gm-Message-State: AAQBX9fpjk7XiDXVr5cCkwf6NN6VJv7QMKNU2iKmSg4SdkaVLYIM+atA h/bvKQhcTF03ajCz9ca+PYMR4T9msNg= X-Google-Smtp-Source: AKy350a9pl47RUBf3tFK3CXlAAT1wOireyR1wcVl4dsmgjAbvb6yag6Jo1Tzz26LSHn4+HC50YcZpQ== X-Received: by 2002:a05:600c:3ba6:b0:3ef:7bc5:4e14 with SMTP id n38-20020a05600c3ba600b003ef7bc54e14mr154121wms.4.1680541072291; Mon, 03 Apr 2023 09:57:52 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id iv19-20020a05600c549300b003ef69873cf1sm20399346wmb.40.2023.04.03.09.57.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 09:57:52 -0700 (PDT) From: Simon Tournier To: Philip Kaludercic , 62206@debbugs.gnu.org Subject: Re: bug#62206: "guix import hackage" not working In-Reply-To: <874jqmj909.fsf@posteo.net> References: <874jqmj909.fsf@posteo.net> Date: Mon, 03 Apr 2023 18:48:08 +0200 Message-ID: <87355ggbef.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62206 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, On mer., 15 mars 2023 at 16:04, Philip Kaludercic wrot= e: > --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=E2=80=A6")) = =E2=80=A6))) > 872:13 1 (eval _) > In unknown file: > 0 (append #f (("exposed-modules" ("Ide.Arguments Id=E2=80=A6")= ) =E2=80=A6)) > > ERROR: In procedure append: > In procedure append: Wrong type argument in position 1 (expecting empty l= ist): #f > --8<---------------cut here---------------end--------------->8--- > > What can I do to debug this? That=E2=80=99s 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=E2= =80=A6")) =E2=80=A6))) 872:13 1 (eval _) In unknown file: 0 (append #f (("other-modules" ("CabalHelper.Compiletime.Cabal C= abalHelper.Compiletime.CompPrograms CabalHelper.Compiletime.Compat.Envir=E2= =80=A6")) =E2=80=A6)) ERROR: In procedure append: In procedure append: Wrong type argument in position 1 (expecting empty lis= t): #f --8<---------------cut here---------------end--------------->8--- Well, I somehow agree with Robert=E2=80=99s comment in [1], quoting: Note that there=E2=80=99s quite a few issues with the cabal parser,= and the format is pretty baroque, to the extent that I wonder whether it wouldn=E2=80=99t be better to delegate the parsing to ca= bal itself. 1: https://issues.guix.gnu.org/issue/38946 Cheers, simon