You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm on 8.10 [cs], the latest Debian, and am running my code using racket-mode. I have a #lang scribble/manual document that depends on scribble/examples. I'll start with the error.
This @-expression from my code that raises the error. Simpler examples do not reproduce, so let's go with this for now. It appears that the (struct term:ksub term (body) #:transparent) instance fails in this exact composition, where term is just (struct term () #:transparent). I'm omitting other structure definitions to keep this at least somewhat brief.
I use this demo macro. Let #:eval be hypothetical.
(define-syntax-rule (demo forms ...)
(examples #:eval (example-evaluator) forms ...))
If you change '(#%provide (all-from '#%kernel))) to #'(#%provide (all-from '#%kernel))), the error goes away. Since scribble-lib/scribble/racket.rkt:1272:26 makes heavy use of syntax-span, I suspect that location information disappears in some nontrivial compositions of quoted code in syntax templates.
The text was updated successfully, but these errors were encountered:
I'm on 8.10 [cs], the latest Debian, and am running my code using
racket-mode
. I have a#lang scribble/manual
document that depends onscribble/examples
. I'll start with the error.This @-expression from my code that raises the error. Simpler examples do not reproduce, so let's go with this for now. It appears that the
(struct term:ksub term (body) #:transparent)
instance fails in this exact composition, whereterm
is just(struct term () #:transparent)
. I'm omitting other structure definitions to keep this at least somewhat brief.I use this
demo
macro. Let#:eval
be hypothetical.If you change
'(#%provide (all-from '#%kernel)))
to#'(#%provide (all-from '#%kernel)))
, the error goes away. Sincescribble-lib/scribble/racket.rkt:1272:26
makes heavy use ofsyntax-span
, I suspect that location information disappears in some nontrivial compositions of quoted code in syntax templates.The text was updated successfully, but these errors were encountered: