GUILE 2.2 doesn't provide source locations
Greetings everybody,
consider the following example:
test =
#(define-void-function (alist key) (scheme? scheme?)
(display (assoc-get key alist)))
{
b
\test #'((this . 0) (that . 1)) #'this
\test ##f ##f
}
Here’s the output for 2.21.1:
/tmp/frescobaldi-uvj_yh7r/tmpl4bs1s1f/document.ly:5:13: In procedure ly:assoc-get in expression (assoc-get key alist):
/tmp/frescobaldi-uvj_yh7r/tmpl4bs1s1f/document.ly:5:13: Wrong type argument in position 2 (expecting list): #975
Here’s the output for current master (2.21.2):
Backtrace:
10 (apply-smob/1 #<catch-closure 7f7dc5103d80>)
In ice-9/eval.scm:
293:34 9 (_ #(#(#<directory (lily) 7f7dc5108f00>) #<variable 7?>))
619:8 8 (_ #(#(#(#(#(#(#(#<directory (lily) ?>) ?) ?) ?) ?) ?) ?))
In srfi/srfi-1.scm:
640:9 7 (for-each #<procedure 7f7dc5841840 at ice-9/eval.scm:3?> ?)
In ice-9/eval.scm:
619:8 6 (_ #(#(#(#(#(#<directory (lily) 7f7dc510?> ?) ?) ?) ?) ?))
In ice-9/boot-9.scm:
829:9 5 (catch _ _ #<procedure 7f7dc5842760 at ice-9/eval.scm:?> ?)
In unknown file:
4 (ly:parse-file "/tmp/frescobaldi-uvj_yh7r/tmpl4bs1s1f/d?")
In ice-9/eval.scm:
293:34 3 (_ #(#(#(#(#(#<directory (scm ly-syntax-co?>) ?) ?) ?) ?))
619:8 2 (_ #(#(#<module (#{ g159}#) 7f7dc6c1baa0>) #f #f))
155:9 1 (_ #(#(#<module (#{ g159}#) 7f7dc6c1baa0>) #f #f))
In unknown file:
0 (ly:assoc-get #f #f # #)
ERROR: In procedure ly:assoc-get:
In procedure ly:assoc-get: Wrong type argument in position 2 (expecting list): #f
I’m not sure if it’s related to #5982 (closed), but applying
@dakas’s patch !42 (merged) doesn’t seem to help here.