all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* scheme error message: better hint at file location?
@ 2021-05-05  0:38 Andy Tai
  0 siblings, 0 replies; only message in thread
From: Andy Tai @ 2021-05-05  0:38 UTC (permalink / raw)
  To: help-guix

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-05  0:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-05  0:38 scheme error message: better hint at file location? Andy Tai

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.