unofficial mirror of help-guix@gnu.org 
 help / color / mirror / 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

unofficial mirror of help-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git