alexharsanyi
2022-2-22 13:09:58

Could someone transfer the following issues form the racket repository to the plot repository? Thanks, Alex.

https://github.com/racket/racket/issues/4164

https://github.com/racket/racket/issues/4035


laurent.orseau
2022-2-22 14:08:15

I want to use errortrace when invoking a submodule, but when I do: racket -l errortrace -e '(require (submod "myprog.rkt" test))' it fails with: #%top-interaction: unbound identifier; also, no #%app syntax transformer is bound at: #%top-interaction in: (#%top-interaction require (submod "myprog.rkt" test)) errortrace...: Same error if I start with the repl with racket -li errortrace then > ,en (submod "myprog.rkt" test) This is v8.4.0.3 [cs].

raco test is able to invoke submodules, but doesn’t seem to be able to instrument errortrace, AFAICT.

What am I doing wrong?


samth
2022-2-22 14:43:16

Done


massung
2022-2-22 14:45:48

Is there an easy way in the FFI to make use of a va_list past to a (Racket) callback?


capfredf
2022-2-22 23:18:32

what function(s) should I use to inspect a syntax object’s phase level?


sorawee
2022-2-22 23:20:53

syntax-debug-info?


capfredf
2022-2-22 23:27:19

Looks like it doesn’t return the phase-level


sorawee
2022-2-22 23:27:57

oh, it consumes phase-level


sorawee
2022-2-22 23:29:19

Is it meaningful to return a phase-level?


sorawee
2022-2-22 23:30:10

There could be multiple phase-levels associated with a syntax object, right?


capfredf
2022-2-22 23:36:57

Yes, you are right. multiple phase levels are fine.


shu--hung
2022-2-23 01:26:06

I don’t know what happened to ,en, but for command-line options I use


shu--hung
2022-2-23 01:29:27

racket -l racket/init -l errortrace -e '(require (submod "prog.rkt" test))' When there is a -l flag, Racket no longer loads racket/init by default. However, racket/init is a module that exports #%top-interaction, thereby enabling top-level expressions (and therefore -e).

(The complete description: * If -t/-l/-p/-u appears before the first -i/-e/-f/-r, -n is added )


shu--hung
2022-2-23 01:30:23

Given this help text I suspect racket -il errortrace is different from racket -li errortrace