From: zimoun <zimon.toutoune@gmail.com>
To: Rovanion Luckey <rovanion.luckey@gmail.com>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: Confusing error messages from guix when loading a user scheme file that fails to load another file
Date: Thu, 25 Feb 2021 17:55:33 +0100 [thread overview]
Message-ID: <CAJ3okZ3pKKpR04Gxfj785a0mw794Y82r9LY9fV1F8o9bb9_gNg@mail.gmail.com> (raw)
In-Reply-To: <CAAaf0CCm+EZ7Qr02+-BEPvo6giWmMK7W4B_7oz0Hyq31WeYMdg@mail.gmail.com>
Hi,
On Sun, 21 Feb 2021 at 10:46, Rovanion Luckey <rovanion.luckey@gmail.com> wrote:
> 1. Why is the file and line number not reported when the user provided scheme 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 #<thunk 7f42cf279540>)
In ice-9/boot-9.scm:
718:2 5 (call-with-prompt ("prompt") #<procedure 7f42cf28b980 …> …)
In ice-9/eval.scm:
619:8 4 (_ #(#(#<directory (guile-user) 7f42ceeb3f00>)))
In ice-9/boot-9.scm:
2806:4 3 (save-module-excursion #<procedure 7f42ceea6180 at ice-…>)
4351:12 2 (_)
In ice-9/ports.scm:
440:11 1 (call-with-input-file "non-existant" #<procedure 7f42c…> …)
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 making 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
next prev parent reply other threads:[~2021-02-25 16:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-21 9:45 Confusing error messages from guix when loading a user scheme file that fails to load another file Rovanion Luckey
2021-02-25 16:55 ` zimoun [this message]
2021-02-26 22:44 ` Rovanion Luckey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ3okZ3pKKpR04Gxfj785a0mw794Y82r9LY9fV1F8o9bb9_gNg@mail.gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=guix-devel@gnu.org \
--cc=rovanion.luckey@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).