-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stepper problem with Schreibe Dein Programm & image teachpack #241
Comments
This happens in (define body-exps (suck-all-exps port reader))
(define teachpack-requires (teachpacks->requires teachpacks))
(rewrite-module
(expand
(datum->syntax
#f
`(,#'module ,module-name ,language-module
(#%module-begin ; avoid problems with macros in a 'module-begin context
,@body-exps
,@teachpack-requires
))
(vector (object-name port) #f #f #f #f)))
enable-testing?
body-exps))] Now, Once |
Hmm.... are you saying that the stepper-skip-completely is on there before the stepper even gets hold of it? |
Exactly. |
I'm probably telling you things you already know, but syntax properties are transferred from syntax supplied to transformers to their results, as described in file:///tmp/rkttmp/racket-8.15.900/doc/reference/stxprops.html#%28tech._stx._prop._preserved%29 . My next guess is that somehow ... there's a whole-module transformer for the SDP languages that winds up attaching this syntax property to all of the top-level forms? |
I got desperate at a certain point and changed all instances of |
Response to your first sentence: Right, yes, that's what I was thinking, along with a hypothetical later transformer step that transfers that mark to all top-level forms. Is that not plausible? Response to your second sentence: I'm wondering if the configuration of the syntax object could be subtly different in the case where the expressions are pulled one by one from the buffer, as opposed to the #lang version where the whole buffer is a single syntax expression? Sorry for not thinking more deeply about this, I'm definitely bouncing from thing to thing right now. For instance: butternut squash soup! Is it burning? |
No, I debug-printed out the properties right inside |
It appears that when a teachpack is enabled in one of the Schreibe Dein Programm language levels, the stepper shows no steps, but insists that the program is instantly complete.
Steps to reproduce:
Start DrRacket
Set the language to SDP-Anfänger (using the language menu)
Choose Language > Add Teachpack...
Choose image.rkt from the list of preinstalled teachpacks
Open a new buffer
Enter this program
Click step.
See a stepper with only the text "All of the definitions have been successfully evaluated."
I'm absolutely over the moon to report that this bug appears to affect 8.15, as well, which means that I'm not inclined to block the release on it... I will add a note to the manual tests, to make sure it becomes part of standard testing.
The text was updated successfully, but these errors were encountered: