Subject: bug#53142: cuirass: useless guile backtraces.

From: Maxime Devos <[email-masked]>
Date: Sun, 09 Jan 2022 16:11:55 +0000

Mathieu Othacehe schreef op zo 09-01-2022 om 16:57 [+0100]:
> 64325600:In ice-9/eval.scm:
> 64325601-    619:8  2 (_ #(#(#<directory (cuirass scripts remote-server) ?> ?)))
> 64325602-    619:8  1 (_ #(#(#(#(#(#(#<directory (cuirass scr?> ?)) ?) ?) ?) ?))
> 64325603:In ice-9/boot-9.scm:
> 64325604-  1685:16  0 (raise-exception _ #:continuable? _)
> 64325605-2022-01-09T11:03:44 debug: 141.80.167.161 (gnijzoxQ): no available build.
> 64325606:ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> 64325607:In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f
> --8<---------------cut here---------------end--------------->8---
> 
> Any idea how to make those backtraces more helpful?

Set COLUMNS=9000, then Guile stop trying to fit them in 80 columns,
it will try 9000 columns instead.

Also, backtraces are clearer for compiled code (avoiding (ice-9 eval)).
Is (cuirass scripts remote-server) compiled to .go?

There's might be guile variable you could set as well (or an argument
to 'backtrace'?), but I forgot the details.