unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Andy Tai <atai@atai.org>
To: help-guix@gnu.org
Subject: scheme error message: better hint at file location?
Date: Tue, 4 May 2021 17:38:36 -0700	[thread overview]
Message-ID: <CAJsg1E8HPU2ro6CbH4F-mEZgp2r=aKgrVh8DtuG2_n_n=Mptkg@mail.gmail.com> (raw)

This is a guix question, or a guile question.

I am working on a package definition.  I run into this error from guile:
---begin---
The following derivation will be built:
   /gnu/store/mc4ssrfp1bsima42rylxmnj8h1vjrik9-opencv-3.4.14.drv
building /gnu/store/mc4ssrfp1bsima42rylxmnj8h1vjrik9-opencv-3.4.14.drv...
Backtrace:
In ice-9/eval.scm:
   217:50 19 (lp (#<procedure 7ffff2b31d20 at ice-9/eval.scm:282:?> ?))
   217:33 18 (lp (#<procedure 7ffff2f547c0 at ice-9/eval.scm:212:?> ?))
   214:21 17 (_ #f)
   217:50 16 (lp (#<procedure 7ffff2b31c40 at ice-9/eval.scm:282:?> ?))
...
  217:50  2 (lp (#<procedure 7ffff2f1f1b0 at ice-9/eval.scm:196:?> ?))
   217:33  1 (lp (#<procedure 7ffff2f1f180 at ice-9/eval.scm:196:12?>))
In unknown file:
           0 (string-append "-DCMAKE_LIBRARY_PATH=" #f)

ERROR: In procedure string-append:
In procedure string-append: Wrong type (expecting string): #f
---end---

Since I just worked on the scheme code, I know where the error came
from.   But no where is the error message pointing to the actual line
number and the scheme file name of the error.   This can be confusing
if I don't just remember the context, which is in a scheme file in
gnu/packages

(Sorry I am new to scheme).    Is there better way to help to identify
the error location in this scenario?

Thanks for info on this.


                 reply	other threads:[~2021-05-05  0:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAJsg1E8HPU2ro6CbH4F-mEZgp2r=aKgrVh8DtuG2_n_n=Mptkg@mail.gmail.com' \
    --to=atai@atai.org \
    --cc=help-guix@gnu.org \
    /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.
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).