leif
2017-1-20 17:31:18

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


leif
2017-1-20 17:31:26

I get one of the two errors:


leif
2017-1-20 17:31:58
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

lexi.lambda
2017-1-20 17:43:15

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


lexi.lambda
2017-1-20 17:43:26

cc/ @robby


robby
2017-1-20 17:52:46

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


robby
2017-1-20 17:53:04

(I know what’s going on)


lexi.lambda
2017-1-20 18:00:56

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


sam
2017-1-20 18:01:42

@sam has joined the channel


sam
2017-1-20 18:02:51

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


sam
2017-1-20 18:03:14

*PLT games


lexi.lambda
2017-1-20 18:05:24

sam
2017-1-20 18:05:40

@lexi: Oh thanks!


sam
2017-1-20 18:39:51

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.


sam
2017-1-20 18:40:06

It does compile without any errors


leif
2017-1-20 19:09:36

@robby No worries, but thanks.


leif
2017-1-20 19:10:04

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


leif
2017-1-20 19:10:22

and thanks*


robby
2017-1-20 19:10:55

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


lexi.lambda
2017-1-20 19:11:43

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 :)


leif
2017-1-20 19:14:16

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:


robby
2017-1-20 19:18:52

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.


robby
2017-1-20 19:19:44

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.


leif
2017-1-20 19:52:01

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


leif
2017-1-20 20:25:15

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)


robby
2017-1-20 20:30:28

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


robby
2017-1-20 20:30:29

r


leif
2017-1-20 20:37:11

In my #lang, no I don’t.


leif
2017-1-20 20:37:33

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


leif
2017-1-20 20:37:38

(This is #lang video btw)


robby
2017-1-20 21:09:27

running is independent of this error, right.


leif
2017-1-20 21:15:16

Yes


leif
2017-1-20 21:15:24

At least I would assume so.


fahree
2017-1-21 06:17:56

@leif are you using acmart? hacking it?