leif
2017-1-24 14:54:45

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


leif
2017-1-24 14:54:48
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
   …

robby
2017-1-24 17:24:02

@leif thanks, I’ve pushed fixes.


githree
2017-1-24 17:29:02

@githree has joined the channel


stchang
2017-1-24 17:41:33

@stchang has joined the channel


leif
2017-1-24 19:47:25

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


leif
2017-1-24 19:47:28
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

leif
2017-1-24 19:49:04

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


robby
2017-1-24 20:28:02

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


leif
2017-1-24 20:28:30

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


leif
2017-1-24 20:28:38

@robby also lol, thanks. :slightly_smiling_face:


robby
2017-1-24 20:35:35

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


leif
2017-1-24 20:58:19

@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


robby
2017-1-24 20:58:42

Are you up to date?


leif
2017-1-24 20:59:08

I just pulled


leif
2017-1-24 20:59:14

Uhh, my gui commit is


leif
2017-1-24 20:59:24

fb6a9116a7a340868fb17f2c62b72f61133d331e


leif
2017-1-24 20:59:39

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


robby
2017-1-24 20:59:57

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


robby
2017-1-24 21:00:13

The racket repo, I mean.


leif
2017-1-24 21:00:38

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


leif
2017-1-24 21:00:47

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


robby
2017-1-24 21:01:12

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


leif
2017-1-24 21:01:19

Okay, no worries.


leif
2017-1-24 21:01:30

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


robby
2017-1-24 21:02:09

6.7?


robby
2017-1-24 21:04:12

You ran raco setup to completion, right?


leif
2017-1-24 21:04:33

6.8.0.2


leif
2017-1-24 21:04:38

I ran make


leif
2017-1-24 21:04:42

And yes, I did.


robby
2017-1-24 21:04:52

oh! I know.


leif
2017-1-24 21:05:05

okay cool


robby
2017-1-24 21:19:11

okay, finally found the code and pushed a fix.


robby
2017-1-24 21:22:03

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


sam
2017-1-24 21:25:45

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?


leif
2017-1-24 21:34:29

@robby compiling and testing now


leif
2017-1-24 21:34:50

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


leif
2017-1-24 21:34:57

Actually, I can just try that myelf…


leif
2017-1-24 21:34:59

myself*


leif
2017-1-24 21:37:29

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


asumu
2017-1-24 22:14:31

@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


asumu
2017-1-24 22:18:31

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


robby
2017-1-24 22:26:37

The test harness strips the #; ?


robby
2017-1-24 22:28:15

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


lexi.lambda
2017-1-24 22:31:40

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


bmastenbrook
2017-1-24 22:32:19

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


stamourv
2017-1-24 22:32:37

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



lexi.lambda
2017-1-24 22:32:57

exciting


bmastenbrook
2017-1-24 22:32:58

eek


stamourv
2017-1-24 22:32:59

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


lexi.lambda
2017-1-24 22:33:35

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


lexi.lambda
2017-1-24 22:34:01

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


leif
2017-1-24 22:34:19

@stamourv wow, what is that doing?


robby
2017-1-24 22:35:08

Yikes. Please consider my poll closed!


leif
2017-1-24 22:35:58

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


leif
2017-1-24 22:36:03

@stamourv ^


stamourv
2017-1-24 22:57:27

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


leif
2017-1-24 23:08:55

Ah, okay, that makes sense.


leif
2017-1-24 23:08:59

Still…very amusing.


leif
2017-1-24 23:09:26

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


leif
2017-1-24 23:09:42

Like scribble or datalog


mflatt
2017-1-25 00:41:10

@ben stickers arrived – thanks!


sabauma
2017-1-25 00:58:59

@sabauma has joined the channel


notjack
2017-1-25 01:46:59

SDD - Sticker Driven Development