From unknown Fri Jun 13 11:41:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46295: syntax error in package definition leads to misleading error message Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 04 Feb 2021 13:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46295 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 46295@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161244612931715 (code B ref -1); Thu, 04 Feb 2021 13:43:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Feb 2021 13:42:09 +0000 Received: from localhost ([127.0.0.1]:40256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7etd-0008FT-9B for submit@debbugs.gnu.org; Thu, 04 Feb 2021 08:42:09 -0500 Received: from lists.gnu.org ([209.51.188.17]:38562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7etb-0008FM-HX for submit@debbugs.gnu.org; Thu, 04 Feb 2021 08:42:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7etb-0004oJ-AN for bug-guix@gnu.org; Thu, 04 Feb 2021 08:42:07 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21144) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7etZ-0008DV-Fp for bug-guix@gnu.org; Thu, 04 Feb 2021 08:42:07 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1612446122; cv=none; d=zohomail.com; s=zohoarc; b=beeQgZql/RO3Z8qBj0VH4CPpcAZlYjBW/nl7/eyUm1FoHzxQLgoDXQnu1cQ3pAZEmmnlBn+awSBv+hiTFc8QDz0TRszWtAHD5VF38q8B0Vae2pA2DLSBnoRg0tJQLXnuytDTAbTYHc3XDIVR2a2G9OmdmktK1W3xYYx+/skbgmU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612446122; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=gCjdq+Qi0920P+N2c7xD+1adfQZ7B17d+x5J2fcfN+o=; b=gG5QpPA9nri04AbVyddBWDf76gH4CuWOxug4kChD0+0XUtntYjDMmqhi2/e7VTm2fuKBIr+8UMIkNgAOlIp5u1Iheyb8RDTSzgAX5+q/Lh62ADCQ+sJCAEOAJZ8fZaZPBtS1RKoTU4jFwPUl5alzXS1r1y7tx+YVoQIF2qOMeyQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1612446122; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=gCjdq+Qi0920P+N2c7xD+1adfQZ7B17d+x5J2fcfN+o=; b=B+6O3qXv/90BOugpXCSAafAYDAKVwd33mzlYnKboiuI7mb2tgqQNEEbSHrEHqVrH pEbawt+A2tu8Jyb/9l2q7zrdQqHnDEDRH4usGf+jYHsFn/9a5IWC3FYRi4jN8IHdO5T Q7RgY5PsCi3FZwejRaXxnN61xCQRmKa6mfcDR2g0= Received: from localhost (p54ad40d0.dip0.t-ipconnect.de [84.173.64.208]) by mx.zohomail.com with SMTPS id 16124461191596.523095726830093; Thu, 4 Feb 2021 05:41:59 -0800 (PST) User-agent: mu4e 1.4.14; emacs 27.1 From: Ricardo Wurmus X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 04 Feb 2021 14:41:56 +0100 Message-ID: <875z38uezf.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 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_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) 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.1 (-) In (gnu packages cran) I added a snippet but forgot to quote it properly. The snippet looked like this: (snippet (delete-file "inst/htmlwidgets/lib/jquery.min.js")) Since this is evaluated right away I got an error as I tried to compile my Guix source checkout: error: failed to load 'gnu/packages/cran.scm': No such file or directory This error is highly misleading as it implies that =E2=80=9Cgnu/packages/cran.scm=E2=80=9D could not be found, while the actua= l error is that =E2=80=9Cinst/htmlwidgets/lib/jquery.min.js=E2=80=9D does not exist. = This could be improved by catching 'system-error and reporting the file location instead of just printing the correct error message without context. --=20 Ricardo