I’m all for moving away from Google Groups if it means we can deal with the spam problem more effectively
Has anyone had trouble getting glob to work with **
on windows? e.g.: (require file/glob) (glob (build-path some place "**/*.txt"))
Variations I’ve tried:
(require file/glob) (glob (build-path some place "**" "*.txt"))
(require file/glob) (glob (build-path some place "**\\*.txt"))
They all return an empty list even though there is a tree of files present.
(only on Windows)
relatedly I discovered this issue: https://github.com/racket/racket/issues/4000
A student today wrote #;; a line comment
in their code, which broke my style-checker. I’m using a custom readtable that detects #\;
, handles it as a 'dispatch-macro
, and attempts to read-syntax/recursive
on the port to read in the entire commented-out sexp. Except of course here, it’s not actually a commented-out sexp. Question: what is it actually that gets read here, and is there a way I can detect and ignore the supposed-to-be-a-line-comment somehow?
The reader’s handling of #;
is to recursively read, but as usual ignoring comments in search of something to comment out. Since read/recursive
reports a comment as a special-comment?
value, you’d need to detect that and recur again.
Ah, so I’ll wind up with a special comment there, whose content (I presume?) would be ; a line comment
?
hmmm, when I try special-comment-value
on the resulting special-comment, I get a value of #f
. Is there any way to obtain the text in it? it’s not urgent, just nice-to-have
thanks @dan.ml.901 , I completely forgot that glob didn’t work on Windows. I’ll try to fix this weekend.
The text is currently not preserved.
got it, thanks
Thanks @ben !
It came back yesterday afternoon and that CI job is now passing again. Thanks for the fix!