From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MG1AO5UNwmB6TAEAgWs5BA (envelope-from ) for ; Thu, 10 Jun 2021 15:03:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GFu1NpUNwmBTGAAAB5/wlQ (envelope-from ) for ; Thu, 10 Jun 2021 13:03:17 +0000 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 6BF112223F for ; Thu, 10 Jun 2021 15:03:13 +0200 (CEST) Received: from localhost ([::1]:39600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrKL2-00089R-1Q for larch@yhetil.org; Thu, 10 Jun 2021 09:03:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrKKs-000897-HN for bug-guix@gnu.org; Thu, 10 Jun 2021 09:03:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52470) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lrKKs-0000bh-7f for bug-guix@gnu.org; Thu, 10 Jun 2021 09:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lrKKs-00061O-12 for bug-guix@gnu.org; Thu, 10 Jun 2021 09:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48700: guix import fails with unexpected token Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 10 Jun 2021 13:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48700 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Philip Munksgaard Received: via spool by 48700-submit@debbugs.gnu.org id=B48700.162333014723104 (code B ref 48700); Thu, 10 Jun 2021 13:03:01 +0000 Received: (at 48700) by debbugs.gnu.org; 10 Jun 2021 13:02:27 +0000 Received: from localhost ([127.0.0.1]:35783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrKKJ-00060a-29 for submit@debbugs.gnu.org; Thu, 10 Jun 2021 09:02:27 -0400 Received: from mail-qk1-f170.google.com ([209.85.222.170]:38665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrKKG-00060J-6B for 48700@debbugs.gnu.org; Thu, 10 Jun 2021 09:02:25 -0400 Received: by mail-qk1-f170.google.com with SMTP id c138so14308086qkg.5 for <48700@debbugs.gnu.org>; Thu, 10 Jun 2021 06:02:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6ueIxal7zzMZzqyFzSerkQXGT1IWOZiFG2RkCctaw3k=; b=VcYqcKE3zfwZQ5hoaezYSiQZNip5C1M/9TGYjvR+Vlv+bCx1sBsIoWblfB47WvByvg Mlzvftayto6MgxbXioR7xAXWp584b2epzkW2wJeA83iHN3cb1j7svfdZsudaaPZXM+PG saDpsLmWIYMYdQYY7a1FzAwNbyuDLzr5NDwkaaVnlp3gi737CBecySih3kkgl07kdvia 4ZWZ0N+UFPTra4wYLHntHViZMiXgOFKNsOzu3DKUrN3BwDylt2VsZdKgJsnevMwTf6Dy Wyol+uP4tiS7kHKFCNn8mmjDAxxxqwbm+vWwbYRJfxcu88YMtUcxhj+0hijaZr2l6iQ7 TPgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6ueIxal7zzMZzqyFzSerkQXGT1IWOZiFG2RkCctaw3k=; b=WaS1gZsjI+6cbOSIOWBJDyU6vkMO7W+mx0nshDf2Og5aiuJcSze4/YF8gcHVKoRCm7 petEhrKvECIzPyXlvWSwYkIw7YHjNXkVTRnqTA07Qm8sZRPlLRt5/kVnpQmeMN6OUXsP zUlxj4RZZuhKQLvCVTog9awMO9vGVruSWK3E6zWpTwxXktW9ctXh5A6FETonGuQ1z094 FprnZFKkCYeajLO1crnyqvgb+6XiQdwiFDTt1bBigFXIcOXcpduBNOs35RHQUWrhzqjQ CIGih2EO9ljquta4dHVtOYpfV5/2wAwhZNyOnxv1TY90ZJLUf4k0ez6VA2C6IH4dD9bI Gc+g== X-Gm-Message-State: AOAM532OlKia0yEXAnDFn7CLdvp5mw+mR1U0yEZAOL29dO9tenlwm3gp BEJ/AMePho8fjCfIQvvGUYaS+FvF4JKs3mIrrSg= X-Google-Smtp-Source: ABdhPJyEV/kUlstwijJlqj/R3QHZbHaO/Okig8OImdfhgQCOM4TzALCiJH8W9rLCnMVHSxPIbNrX7/R9H14MPPzkEa0= X-Received: by 2002:a37:7345:: with SMTP id o66mr4559586qkc.201.1623330138517; Thu, 10 Jun 2021 06:02:18 -0700 (PDT) MIME-Version: 1.0 References: <00e1a49d-d5af-402d-987c-f940adc5ab81@www.fastmail.com> <5867400c-f36a-43a0-94b0-0a33085b15dc@www.fastmail.com> In-Reply-To: <5867400c-f36a-43a0-94b0-0a33085b15dc@www.fastmail.com> From: zimoun Date: Thu, 10 Jun 2021 15:02:07 +0200 Message-ID: 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: , Cc: 48700@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623330193; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=6ueIxal7zzMZzqyFzSerkQXGT1IWOZiFG2RkCctaw3k=; b=jXrZDJCQ5GibPLFvlr4I9S7yYX6oLpLIkCgTx0gvlCxmEtQ0xhqDELeHnNXu5EizBX02pR 5Stprzu0N12x1coAF6navAt3ZkFyLIUbecXPIf8Utx8+rVA5UmY9G7+AJW3zojCXhpCXLo 6n/I+UQtbh8RqX+bc5vrHYfazuw9/M6SCGqbjPt2nDcaLUMO7WMXyk6jXXTFlSXVOl1hv3 jxbjvvcodNPA8OEiPdYPb6T40i482Fu92xYR/v2UwtOsjgt6nMkA7ivGj7F17747fnVZgY EP6f89WdQupD/DKeQuyPqKSTwX1qEFYw96kgIeySbQJt7FhV6P9HknO9VoR9ZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623330193; a=rsa-sha256; cv=none; b=piWWCS8pY3nIgFj9y3CfDOogC4ObQRIBXyrBn0tj6WEdkSiVxNuSFw8buWlBv2TrODM6JM Coi/m8UFwEtzrZIQAm7Yw5nqWHi8MrlC506Cz4kfgTx+xTdkFFuMNUANC6uTDXgFgPvlxA 5Ht1vA2RchCIEwXrcG/xepGj/tVAJagJ850IpIahlG7GI/Y77pz4VR+hZSUaWYx/TfYVsn lf/5cELz/yAVxKNHYp4QyasAv91KfavaGkyqadkeo1qrs6us1Zqw+Ju9MJsNngJnWok83K A7YSub6KHYy6qAo2Mei46Dgz8aE0j6slIlo5OfQ5VSixwVOjgKcWCPw6geyyzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=VcYqcKE3; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=VcYqcKE3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 6BF112223F X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: RnB1xUtjwwge Hi, On Thu, 10 Jun 2021 at 14:22, Philip Munksgaard wrot= e: > If I understand you correctly, you're saying that this issue is an instan= ce of bug#44115 because we get a backtrace instead of a nice error. I agree= that the backtrace is ugly, but in this case the error shouldn't happen at= all because all the recursively imported packages exist. Your point is that parsing the Cabal file of the package "versions" fails. Mine is, somehow, instead of an ugly backtrace (whatever the reason), the error for "guix import hackage futhark -r" should be: Syntax error: unexpected token : common (at line 36, column 0) Syntax error: unexpected end of input guix import: error: =C3=A9chec du t=C3=A9l=C3=A9chargement du fichier cab= al du paquet =C2=AB versions =C2=BB as it is for "guix import hackage versions". > The reason why the backtrace occurs is that the cabal-file for one of the= recursively imported dependencies (versions) cannot be parsed using the cu= rrent version of guix/import/cabal.scm. You'll find that `guix import hacka= ge -r futhark` works as expected with the submitted patch#48943. Yeah. I started to give a look for fixing. Thanks to be faster. :-) > Furthermore, I actually think that a backtrace _is_ desirable in this cas= e, because it is an error in the script, and not in the users input or some= third-party repository. My opinion is getting a Backtrace is always a poor user experience. Well, matter of taste. ;-) > As you say, your example works, but you've forgotten the "versions" depen= dency. If you add that to your list it will not work. Yeah, right. I did too quickly but it does not change my point above. :-) Thanks, simon