pocmatos
2020-1-14 14:56:24

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:


gknauth
2020-1-14 15:39:12

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") ...)


gknauth
2020-1-14 15:39:38

But I would like to see something more like:


gknauth
2020-1-14 15:40:02

(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") ...)


gknauth
2020-1-14 15:40:08

Is is possible to do that?


soegaard2
2020-1-14 15:40:35

Try pretty-print with a large column size.


gknauth
2020-1-14 15:40:46

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


gknauth
2020-1-14 15:41:12

Thanks! I’ll try that.


soegaard2
2020-1-14 15:41:41

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


soegaard2
2020-1-14 15:42:53

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


soegaard2
2020-1-14 15:45:00

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).



notjack
2020-1-14 18:11:33

deactivateduser60718
2020-1-14 21:18:55

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


deactivateduser60718
2020-1-14 21:19:08

In running profiler.rkt


deactivateduser60718
2020-1-14 21:19:46

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