
@robby FYI, when I try to use DrRacket’s paragraph formatting feature, I get:

preferences:get: tried to get a preference but no default set for 'scribble-reindent-paragraph-width
context...:
/Users/leif/rsrc/gui/gui-lib/framework/preferences.rkt:93:0: preferences:get
/Users/leif/racket/racket/collects/racket/contract/private/arrow-val-first.rkt:357:18
/Users/leif/rsrc/gui/gui-lib/scribble/private/indentation.rkt:54:0: reindent-paragraph
/Users/leif/rsrc/gui/gui-lib/mred/private/wxme/keymap.rkt:736:2: core502
/Users/leif/rsrc/gui/gui-lib/mred/private/wxme/keymap.rkt:508:2: chain-handle-key-event method in keymap%
/Users/leif/rsrc/gui/gui-lib/mred/private/wxme/keymap.rkt:496:4: for-loop
/Users/leif/rsrc/gui/gui-lib/mred/private/wxme/keymap.rkt:508:2: chain-handle-key-event method in keymap%
/Users/leif/rsrc/gui/gui-lib/mred/private/wxme/keymap.rkt:459:2: handle-key-event method in keymap%
/Users/leif/rsrc/gui/gui-lib/mred/private/wxme/editor.rkt:214:2: on-local-char method in editor%
/Users/leif/rsrc/drracket-vim-tool/private/text.rkt:136:13
...higher-order.rkt:342:33
/Users/leif/rsrc/gui/gui-lib/mred/private/wxme/editor-canvas.rkt:462:2: on-char method in editor-canvas%
/Users/leif/racket/racket/collects/racket/private/more-scheme.rkt:148:2: call-with-break-parameterization
/Users/leif/racket/racket/collects/ffi/unsafe/atomic.rkt:72:13
/Users/leif/rsrc/gui/gui-lib/mred/private/wx/cocoa/window.rkt:801:4: dispatch-on-char method in window%
/Users/leif/rsrc/gui/gui-lib/mred/private/wx/common/queue.rkt:454:6
…

@leif thanks, I’ve pushed fixes.

@githree has joined the channel

@stchang has joined the channel

@robby Hmm…now I”m getting this error whenever I open a scribble file:

keymap:remove-keymap: found a keymap that is not a keymap:aug-keymap<%> (object:keymap% ...)
context...:
/Users/leif/rsrc/gui/gui-lib/framework/private/keymap.rkt:98:6: p-loop
/Users/leif/rsrc/gui/gui-lib/framework/private/keymap.rkt:103:8: c-loop
/Users/leif/rsrc/gui/gui-lib/framework/private/racket.rkt:1328:4: on-disable-surrogate method in ...k/private/racket.rkt:1324:2
/Users/leif/racket/racket/collects/racket/surrogate.rkt:248:0: do-set-surrogate
/Users/leif/rsrc/drracket/drracket/drracket/private/module-language-tools.rkt:341:6: clear-things-out method in ...e-language-tools.rkt:200:4
/Users/leif/rsrc/drracket/drracket/drracket/private/module-language-tools.rkt:288:6: core665
/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

(And the normal reindent paragraph button doesn’t seem to work, giving me an œ instead.

@leif I really should have opened that second tab in my testing, eh?

Ah, that would explain why I was only getting it when I used the open command.

@robby also lol, thanks. :slightly_smiling_face:

well, I pushed a fix. Keep the bug reports coming and thanks for helping test.

@robby So, I apologize, now I get this error when I open up scribble files: dynamic-require: name is not provided
name: 'surrogate%
module: #<resolved-module-path:"/Users/leif/rsrc/gui/gui-lib/scribble/private/indentation.rkt">
context...:
/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:148: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:288:6: core665
/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

Are you up to date?

I just pulled

Uhh, my gui commit is

fb6a9116a7a340868fb17f2c62b72f61133d331e

commit message: “move to drracket:keystrokes and away from surrogate stuff”

and you’re at 8e396f27 in the main repo?

The racket
repo, I mean.

That’s one commit out of date. I’m on: 45bacf49171b0d62e101c8ae33775523f94d242e

(Vincent made a push like 10 minutes ago or something like that.)

ok, sorry. I’ll have to look later on.

Okay, no worries.

I’m using Emacs as a back up for now. Thanks for looking into it. :slightly_smiling_face:

6.7?

You ran raco setup
to completion, right?

6.8.0.2

I ran make

And yes, I did.

oh! I know.

okay cool

okay, finally found the code and pushed a fix.

hi all: Matthew and I are considering a change to how #lang parses to limit the kinds of comments that are allowed before #lang (technically add a reader parameter that disallows #lang after a #; comment and to use that parameter in module-reading mode (via with-module-reading-parameterization)).
The reason has to do with giving a good experience while editing files with DrRacket (and other editors that want to scrutinize your code while you are editing it). With #; semi-colon comments, it isn’t really feasible to find the #lang line without either calling read
or re-implementing read
, but read
is not designed to be interrupted and so may make DrRacket feel not interactive because there is some large or hard to parse expression before the #lang line in your file that DrRacket has to repeatedly parse. Of course, we can just be slow in that one case, but re-using read
in the right ways in the right places seems painful and allowing #;
before #lang seems of limited value.
Please weigh in: https://goo.gl/0ZLL3h

Hey, I took code from here:https://github.com/racket/games/tree/master/blackjack
And changed it, and now want to compile it, but I can’t compile it using raco. The executable it creates simply does nothing and the gui created using —gui flag just quits after opening. Is there some other step required to compile a game?

@robby compiling and testing now

@robby Also interesting. I didn’t realize we did that. Do we have ;
single line comments before the #lang?

Actually, I can just try that myelf…

myself*

@robby cool, @-expressions seem to be working now, thanks.

@robby if I understand your proposal correctly, I think that will rule out a significant number of Typed Racket tests, e.g., https://github.com/racket/typed-racket/blob/master/typed-racket-test/fail/bad-ann-from-macro-in-unit.rkt#L1

(maybe the TR test harness can probably work around this some other way though)

The test harness strips the #; ?

Anyways there is a language design problem lurking there I would say. (If only we had a way to design our own languages ….. :stuck_out_tongue_winking_eye:)

it does seem like it could be replaced by a #lang typed/racket/test/fail
or something like that

or even more hackily, just put the #lang line first and call read-line twice instead of once

@robby, @asumu, @lexi-lambda: FWIW, the TR optimizer tests abuse that even more.


exciting

eek

But yeah, a custom #lang could probably solve that.

I have my wonky syntax for something like that for scripts http://docs.racket-lang.org/scripty/index.html

I wonder if you could generalize that sort of solution to handle the sorts of things TR needs without being TR-specific

@stamourv wow, what is that doing?

Yikes. Please consider my poll closed!

@stam Also wow, I have never considered putting two #;
right next to each other.

@stamourv ^

@leif: These two are the expected optimization log, and the expected printout from running the file, respectively.

Ah, okay, that makes sense.

Still…very amusing.

Although it is kind of interesting to think about how this works with other #lang
s with very different syntax than racket.

Like scribble or datalog

@ben stickers arrived – thanks!

@sabauma has joined the channel

SDD - Sticker Driven Development