From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QMbtAa4FK2TheAAASxT56A (envelope-from ) for ; Mon, 03 Apr 2023 18:58:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0DLeAK4FK2RUBwAAG6o9tA (envelope-from ) for ; Mon, 03 Apr 2023 18:58:22 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 926C61573F for ; Mon, 3 Apr 2023 18:58:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjNVV-0005tb-Vo; Mon, 03 Apr 2023 12:58:15 -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 1pjNVM-0005mG-Lr for bug-guix@gnu.org; Mon, 03 Apr 2023 12:58:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pjNVL-0006rK-NP for bug-guix@gnu.org; Mon, 03 Apr 2023 12:58:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pjNVL-0001AM-C1 for bug-guix@gnu.org; Mon, 03 Apr 2023 12:58:03 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#62206: "guix import hackage" not working Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 03 Apr 2023 16:58:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62206 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Philip Kaludercic , 62206@debbugs.gnu.org Received: via spool by 62206-submit@debbugs.gnu.org id=B62206.16805410804440 (code B ref 62206); Mon, 03 Apr 2023 16:58:03 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680541101; a=rsa-sha256; cv=none; b=r9/yn8QKuvQbGG85jWSqj7nfMl0cbEbEvv+GZaK/DOaDoxY1LREBb113HvGOb+uy5caknA j7Y+W0itrqNvk7DENnavh9TlzgLPb8Q9gE4yNXP4ZIx7CM6NEojt8eiyjiuXtDG/z7zkqy hHg/JGy0OupgK6/i+I6m0/QmxfmWz9y8JdMIAqe/sBtTUJlDaNikcb/AdpFMih1AFXlpkR DWib9oqBcT5IQu9javVgnC0uuV1d5BIHpxgRaNM7R974UOc9/YObM2xwBG1kj3Q3x3Zkd0 Ukc/dUQvVnAb5EAO26DBmiQXmCx2mwJ9ej6C64CPn37js8Zv9cuGV13zVAllhw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=doAe0pgi; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680541101; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Y9pKgNiwtcAx+2u3Ub4b6K9+VwWs1lC+OiEdnd1abjo=; b=K3C1pVsN/pmNCNsJErWEK4WIOmueh1pmnB6UTldp4cT20LRJnFHvPCgYS65g+7dAE/TehK Vv6UGHl6wkrD27iYB09SfLGKTbb47GR+jD2J7pwnF30nEuQRuRoh+TWkBKbQUWINslMEIU 3eSza2an3ZykvjyUIrkxp9UDj+8d4zBZQTWh9snIvP56oYvIaJRsqMtHmBWeQSIZcLN5Xf M+pJyghMuxNAmUiRjB0bRN81e3sH/NbDiZuoQpj7RzUy6sI6jOaA4ojVTc3ZxAtErKceOT Hw/onU4trPqfyNgilhPhJgXJrLCeOce/mAfj+fH+LKUTGezuyKAjFU0o76Cmew== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=doAe0pgi; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.62 X-Spam-Score: -2.62 X-Migadu-Queue-Id: 926C61573F X-TUID: 54cx3QNWYd9Q 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