spdegabrielle
2021-11-19 12:05:02

Book / chapter / paper club starts 1 December - details here: https://racket.discourse.group/t/book-chapter-paper-club/158?u=spdegabrielle


capfredf
2021-11-19 18:38:56

Is raco setup -v my-collection supposed to print the name of each file that gets compiled?


wjb
2021-11-19 20:15:55

Have anyone run into an issue in in the student languages with 2htdp where place-image does not exist, but put-image does? As far as I can tell, this shouldn’t be possible in any version of Racket… but a student seems to non-deterministically run into this problem.


samth
2021-11-19 20:17:27

They are likely requiring htdp/image (note lack of 2)


soegaard2
2021-11-19 20:17:32

soegaard2
2021-11-19 20:18:27

If he starts DrRacket by using spotlight he might not use the same version each time.


wjb
2021-11-19 20:27:46

Hm, htdp/image would have resulted in another error, since overlay/offset is undefined.


badkins
2021-11-19 22:00:09

I’m seeing an oddity with Racket-XP mode. There are some lines that appear, and when I hover over them, the tooltip “no bound occurrence” is displayed, but the lines don’t appear to be associated with any code. For example below. Does anyone else have these lines?


greg
2021-11-19 23:28:25

If you move point to one of those areas and do C-u C-x = (which is Emacs what-cursor-position with the detail flag true) it will open a *Help* buffer showing information. I’d be curious what that shows, especially the end of the buffer starting with There are text properties here:.


greg
2021-11-19 23:30:45

Or actually maybe the entire buffer, since I’m curious what exactly is that hyphen-like character.


greg
2021-11-19 23:50:37

Oh the strikeout character would be from racket-xp-unused-face. So the question is just why is it highlighting those intervals as an unused binding.


greg
2021-11-19 23:51:57

Sometimes I see an artifact if I’m making many quick edits in a row, not just typing, but cutting/pasting, and the artifact is until the idle timer refresh catches up with the changes. If you C-c # g a.k.a. M-x racket-xp-annotate do the artifacts go away?


mflatt
2021-11-20 00:18:40

I don’t remember, but I think parallel build was never made quite as verbose as sequential build, so that may be part of the issue


wjb
2021-11-20 00:41:40

I’ve confirmed the problem I refer to above happens in 8.1 cs, on windows, with 2htdp/image , and it’s nondeterministic (on that machine)—the same problem happens sometimes, but not other times. and I cannot for the life of me figure out why.


badkins
2021-11-20 00:52:21

C-u C-x = resulted in: position: 14 of 1037 (1%), column: 0 character: C-j (displayed as C-j) (codepoint 10, #o12, #xa) charset: ascii (ASCII (ISO646 IRV)) code point in charset: 0x0A script: latin syntax: > which means: endcomment to input: type "C-x 8 RET a" or "C-x 8 RET LINE FEED (LF)" buffer code: #x0A file code: #x0A (encoded by coding system utf-8-unix) display: by this font (glyph code) mac-ct:-*-Monaco-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1 (#x02) Character code properties: customize what to show old-name: LINE FEED (LF) general-category: Cc (Other, Control) There is an overlay here: From 13 to 15 face racket-xp-unused-face insert-behind-hooks (racket--modifying-overlay-deletes-it) insert-in-front-hooks (racket--modifying-overlay-deletes-it) modification-hooks (racket--modifying-overlay-deletes-it) priority 0 There are text properties here: fontified t help-echo "no bound occurrences"


badkins
2021-11-20 00:53:06

or position: 48 of 1037 (5%), column: 0 character: SPC (displayed as SPC) (codepoint 32, #o40, #x20) charset: ascii (ASCII (ISO646 IRV)) code point in charset: 0x20 script: latin syntax: which means: whitespace category: .:Base, a:ASCII, l:Latin to input: type "C-x 8 RET 20" or "C-x 8 RET SPACE" buffer code: #x20 file code: #x20 (encoded by coding system utf-8-unix) display: by this font (glyph code) mac-ct:-*-Monaco-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1 (#x03) Character code properties: customize what to show name: SPACE general-category: Zs (Separator, Space) decomposition: (32) (' ') There is an overlay here: From 47 to 52 face racket-xp-unused-face insert-behind-hooks (racket--modifying-overlay-deletes-it) insert-in-front-hooks (racket--modifying-overlay-deletes-it) modification-hooks (racket--modifying-overlay-deletes-it) priority 0 There are text properties here: fontified t help-echo "no bound occurrences" [back]


badkins
2021-11-20 00:55:18

M-x racket-xp-annotate did not clear them.


badkins
2021-11-20 01:01:45

I just recreated the file in another buffer, and it does not have the artifacts, but the Racket XP mode indicator is red and has an x instead of a checkmark.


badkins
2021-11-20 01:03:15

My bad - red herring. I had a typo in one of my requires - when I fixed that, the strange artifacts returned.


badkins
2021-11-20 01:07:24

Toggling racket-xp-mode hides and shows the artifacts reliably.


badkins
2021-11-20 01:09:55

It looks like it may have something to do with the macro I use to create my views. Not sure this is helpful, but here it is: (define-syntax (axio-render-layout stx) (syntax-case stx () [(_ ctx body-template) (with-syntax ([ body (format-id #'ctx "body") ] [ layout-template (datum->syntax #'ctx "../views/layouts/application.html") ]) #'(axio-render-template ctx (let ([ body (include-template body-template) ]) (include-template layout-template))))] [(_ ctx body-template layout-template) (with-syntax ([ body (format-id #'ctx "body") ]) #'(axio-render-template ctx (let ([ body (include-template body-template) ]) (include-template layout-template))))] ))


badkins
2021-11-20 01:13:31

If this info is insufficient, I can try and produce a minimal example that reproduces the problem over the weekend.