Stack traces for phase 1 errors?

Alexis King <[email protected]>
Newsgroups gmane.comp.lang.racket.user,gmane.lisp.scheme.plt
Message-ID <[email protected]>
I have run into a few situations lately where I would really
appreciate stack traces for errors in my compile-time code. However,
I can’t figure out how to get errortrace to work with errors that
occur at compile-time. For example, here’s a simple program:

  #lang racket

  (begin-for-syntax
    (define (bad-fn x)
      (string-append x 3)))

  (define-syntax foo (bad-fn ""))

If I run this with the following command, without compiling it:

  $ racket -l errortrace -t phase1-error.rkt

…I get an error message with an “errortrace...:” block, but no
actual information in that block.

Is there any way to get stack trace information for these kinds of
errors?

Alexis

-- 
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.