
Hey - just remembered asking here. Will anyone be in ELS (https://european-lisp-symposium.org/2020/index.html) this year? If so, I will be there as well so we could have a chat over a coffee. :slightly_smiling_face:

I’m wondering what controls the printing of a vector
. I have a long list of vectors from a DB query: (list
(vector
6
2611
65548
"DE"
544
"Yellow"
"Immediate"
(dt "2020-01-13 22:17:00" #f)
(dt "2020-01-14 22:17:00" #f)
"Continue")
...)

But I would like to see something more like:

(list
(vector 6 2611 65548 "DE" 544 "Yellow" "Immediate" (dt "2020-01-13 22:17:00" #f) (dt "2020-01-14 22:17:00" #f) "Continue")
...)

Is is possible to do that?

Try pretty-print
with a large column size.

I should mention I’m in racket-mode
in Emacs, that may be part of it.

Thanks! I’ll try that.

Not sure whether the output in racket-mode is controlled by Racket or racket-mode.

This variable in racket-mode is interesting: > racket-pretty-print > Use pretty-print instead of print in REPL.

But even though racket-mode uses print
as default - there is no guarantee that the default parameters are set to the same as in the repl. We need to check the code (I have been bothered by the same issue in the past).


@gknauth you could put the data into a table: https://docs.racket-lang.org/rebellion/Tables.html\|https://docs.racket-lang.org/rebellion/Tables.html

Trace from DrRacket is as follows:
. ../../racket/share/pkgs/errortrace-lib/errortrace/private/utils.rkt:26:18: #%require: unbound identifier;
also, no #%app syntax transformer is bound
context...:
#(-47121 module utils) #(-29118 module) #(762807 macro)
[common scopes]
other binding...:
#(#%require #<module-path-index:'#%core> 0)
#(761054 module) #(761057 module keyword) [common scopes]
common scopes...:
#(762808 module) #(762811 module keyword)
errortrace...: in: #%require

In running profiler.rkt

I do not know what exactly this clarifies, if anything. What else can I provide?