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 ms11 with LMTPS id QPNFO7bWN2AvKAAA0tVLHw (envelope-from ) for ; Thu, 25 Feb 2021 16:56:22 +0000 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 WO0KN7bWN2B2YgAAB5/wlQ (envelope-from ) for ; Thu, 25 Feb 2021 16:56:22 +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 4FE5E29ED9 for ; Thu, 25 Feb 2021 17:56:22 +0100 (CET) Received: from localhost ([::1]:47798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFJw5-0000KK-6F for larch@yhetil.org; Thu, 25 Feb 2021 11:56:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFJva-0000IO-KP for guix-devel@gnu.org; Thu, 25 Feb 2021 11:55:50 -0500 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]:34427) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFJvW-0004Sv-L2 for guix-devel@gnu.org; Thu, 25 Feb 2021 11:55:49 -0500 Received: by mail-qk1-x730.google.com with SMTP id x124so6291799qkc.1 for ; Thu, 25 Feb 2021 08:55:45 -0800 (PST) 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=LfuxdOsikfDYgWS1RehnQmlue0lFCmXU5iKMD2TLu64=; b=frXzpjqHZZiP2Vt0zxNCJxkRAvP80Bbcho43ARzv5SWSk/l+L8ltHDJeH/SiQGi820 HhqwQFYD3Fg+k/dtYCxxl2i7+LbP93aVkmM+WGn/DExKncd2mE85VhhN7+YWCyJUPrCF ViGMIfaMEzHIGUvfwLXwVBgIeO85RMZx3has7DZ/O5jGA7qD9LVy3brz1osCXkcPj9Ki u1Gn7gHmKoXVlteqBKyWnqhw9i1QiMgu9jRYDDulUar7BqPM5MyZpeyS/t8++Y7F7yVq R8QegNTqd9biY1pSdt9QF9b4WUBj6A14A5gZQU8Wugrn/TVZckIqKdRQ03MYfY4NWyAG mMBQ== 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=LfuxdOsikfDYgWS1RehnQmlue0lFCmXU5iKMD2TLu64=; b=psN6ySKH8tEvge9Xv6/PgdzsviI6pwJIbBh966XNARo/nE49Z9Knil5Kuutwos5LMN 86XN3jR4Y98Oa3pRcNtK8vLNIPdGApSbDFj7Au7Nu3k3+fvZFiIymYjXjRduaEkDl1om 71F4PNvqM0CFS8C1Ed7Xw1ou3ubZQB5fegfo+EwGPOOeDx5MW1SZt1tfTU1c/+txCrb/ xW5SBwN8U0o3wtXzmqL2mfSICHGYnqjjqMyDt9kG5/HLZpwCzSB4knPY7+JWz0JMrWOO 0YVQIHvAYOXavTmzYl/wPvZC9LM/eyQrodcMtA8CkYy4RQaVPJ8T6OVf9bverZQiFtni eoCA== X-Gm-Message-State: AOAM530XIyVPmPpwwfz54XqE+qgyiSavkQGBS+lHk/knyTZQ0Nz82toU ubXJ5GWR7zO+Z3tUiTBcQJPk4svm+lwXe5LuH1I= X-Google-Smtp-Source: ABdhPJwQHdBKTDEezMRvJ8ExWDzURLEw7Dk1ev5wViAdVjrSQeVWpwGa47n7GGSAgpXcC41LSUrk6MjzQp4gLf8olKk= X-Received: by 2002:a05:620a:895:: with SMTP id b21mr3701995qka.80.1614272144895; Thu, 25 Feb 2021 08:55:44 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: zimoun Date: Thu, 25 Feb 2021 17:55:33 +0100 Message-ID: Subject: Re: Confusing error messages from guix when loading a user scheme file that fails to load another file To: Rovanion Luckey Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::730; envelope-from=zimon.toutoune@gmail.com; helo=mail-qk1-x730.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=frXzpjqH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 4FE5E29ED9 X-Spam-Score: -3.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0JjjCHggJaJt Hi, On Sun, 21 Feb 2021 at 10:46, Rovanion Luckey w= rote: > 1. Why is the file and line number not reported when the user provided sc= heme file fails to load another file? Because Guile does not provide this information. --8<---------------cut here---------------start------------->8--- $ guile -s /tmp/load-non-existing-file.scm Backtrace: In ice-9/boot-9.scm: 1736:10 7 (with-exception-handler _ _ #:unwind? _ # _) In unknown file: 6 (apply-smob/0 #) In ice-9/boot-9.scm: 718:2 5 (call-with-prompt ("prompt") # =E2=80=A6) In ice-9/eval.scm: 619:8 4 (_ #(#(#))) In ice-9/boot-9.scm: 2806:4 3 (save-module-excursion #) 4351:12 2 (_) In ice-9/ports.scm: 440:11 1 (call-with-input-file "non-existant" # =E2=80=A6) In unknown file: 0 (open-file "non-existant" "r" #:encoding #f # #f) ERROR: In procedure open-file: In procedure open-file: No such file or directory: "non-existant" --8<---------------cut here---------------end--------------->8--- > 2. Is it possible to modify guix so that it is? >From my understanding, no. Well, it is not easy, but I could be wrong. > 3. If not, is the code path that I patched also used for other failures m= aking the modification I demonstrated above a bad idea? Instead of modifying the "generic" message, it seems more appropriate to collect the error, i.e., add another case for the match. All the best, simon