
Is anyone else noticing that in recent builds of racket, DrRacket errors when trying to parse scribble files?

I get one of the two errors:

preferences:set-default: preferences default already set for 'scribble-reindent-paragraph-width
context...:
/Users/leif/racket/racket/collects/racket/contract/private/arrow-val-first.rkt:397:3
/Users/leif/rsrc/gui/gui-lib/scribble/private/indentation.rkt: [running body]
/Users/leif/rsrc/drracket/drracket/drracket/private/in-irl-namespace.rkt:48:0: get-definitions-text-surrogate/inside
/Users/leif/rsrc/drracket/drracket/drracket/private/insulated-read-language.rkt:142:7
/Users/leif/racket/racket/collects/racket/contract/private/arrow-higher-order.rkt:342:33
/Users/leif/rsrc/drracket/drracket/drracket/private/module-language-tools.rkt:286:6: core655
/Users/leif/rsrc/gui/gui-lib/framework/private/logging-timer.rkt:41:0: log-timeline/proc
/Users/leif/rsrc/gui/gui-lib/mred/private/wx/common/timer.rkt:34:38
/Users/leif/rsrc/gui/gui-lib/mred/private/wx/common/queue.rkt:454:6
/Users/leif/rsrc/gui/gui-lib/mred/private/wx/common/queue.rkt:505:32
/Users/leif/rsrc/gui/gui-lib/mred/private/wx/common/queue.rkt:653:3
surrogate%: undefined;
cannot reference an identifier before its definition
in module: "/Users/leif/racket-source/racket/share/pkgs/gui-lib/scribble/private/indentation.rkt"
context...:
/Users/leif/racket-source/racket/share/pkgs/drracket/drracket/private/in-irl-namespace.rkt:48:0: get-definitions-text-surrogate/inside
/Users/leif/racket-source/racket/share/pkgs/drracket/drracket/private/insulated-read-language.rkt:142:7
/Users/leif/racket-source/racket/collects/racket/contract/private/arrow-higher-order.rkt:342:33
/Users/leif/racket-source/racket/share/pkgs/drracket/drracket/private/module-language-tools.rkt:286:6: core655
/Users/leif/racket-source/racket/share/pkgs/gui-lib/framework/private/logging-timer.rkt:41:0: log-timeline/proc
/Users/leif/racket-source/racket/share/pkgs/gui-lib/mred/private/wx/common/timer.rkt:34:38
/Users/leif/racket-source/racket/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:454:6
/Users/leif/racket-source/racket/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:505:32
/Users/leif/racket-source/racket/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:653:3

yeah, I’ve gotten that, too, but only sometimes

cc/ @robby

Sorry, I noticed that and haven’t found time to fix it. I’ll try to do it today.

(I know what’s going on)

no worries, I expect breakage sometimes running on HEAD :)

@sam has joined the channel

I had a question about the card games in PLT slack. Where can I find the source code for those games?

*PLT games


@lexi: Oh thanks!

Hey, do i have to build this: https://github.com/racket/games/blob/master/blackjack/blackjack.rkt I tried just copying the file into my dr racket and hitting play, but I couldn’t find the right function to start the script.

It does compile without any errors

@robby No worries, but thanks.

(Its just amusing because at the moment, I have to restart DrRacket every time I want to switch scribble files at the moment. ^.^ )

and thanks*

@leif @lexi.lambda the bug happens when more than one file ends up using scribble/at-exp. (But probably you figured that out already.)

yep. I’d try and fix it myself, but tbh I’d probably spend hours just trying to identify the problem when you could figure it out in minutes :)

Yup, I’m with @lexi.lambda . It looks like the error happens a file is getting run multiple times that tries to set a drracket preference, but its not immediately obvious what the problem is, so I’d also spend longer fixing it. So ya, thanks. :smile:

It probably wasn’t completely clear, but do you see the “#lang” at the front of the error message? That’s meant to signal that this error is happening during some external-to-drracket tool for editing/indenting/coloring/whatever that drracket gets from reading the #lang line.

I’m not sure where to declare this bug is yet, but in general things like that should happen only when there is a bug in the #lang-line-specific code that drracket pulls in to customize itself.

Oh, okay. I was wondering about that. Thank you.

On a related note @robby, is there any way to tell DrRacket that your #lang uses @-expressions (I’m not using the at-exp meta lang)

@leif open the file in two tabs and see if you get the erro.

r

In my #lang, no I don’t.

I mean, i can use @-exps and the program runs just fine. It just doesn’t get DrRacket’s syntax highlighting or indentation.

(This is #lang video btw)

running is independent of this error, right.

Yes

At least I would assume so.

@leif are you using acmart? hacking it?