Book / chapter / paper club starts 1 December - details here: https://racket.discourse.group/t/book-chapter-paper-club/158?u=spdegabrielle
Is raco setup -v my-collection
supposed to print the name of each file that gets compiled?
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.
They are likely requiring htdp/image
(note lack of 2)
Maybe he has two different versions installed?
https://stackoverflow.com/questions/21491994/place-images-not-defined-drracket
If he starts DrRacket by using spotlight he might not use the same version each time.
Hm, htdp/image
would have resulted in another error, since overlay/offset
is undefined.
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?
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:
.
Or actually maybe the entire buffer, since I’m curious what exactly is that hyphen-like character.
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.
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?
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
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.
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"
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]
M-x racket-xp-annotate
did not clear them.
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.
My bad - red herring. I had a typo in one of my requires - when I fixed that, the strange artifacts returned.
Toggling racket-xp-mode
hides and shows the artifacts reliably.
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))))]
))
If this info is insufficient, I can try and produce a minimal example that reproduces the problem over the weekend.