
Ha anyone managed to get the -W
flag to work for topics with spaces in its name?

Whenever I do racket -W debug@'AVFoundation input device' listdev.rkt
, I get something like:

$ racket -W debug@'AVFoundation input device' listdev.rkt
racket: stderr <levels> after -W switch must be one of the following
<level>s:
none fatal error warning info debug
or up to one such <level> in whitespace-separated sequence of
<level>@<name>
given: debug@AVFoundation input device
Use the --help or -h flag for help.

Most shells would probably like racket -W "debug@AVFoundation input device" listdev.rkt

@robby Hmm…no luck: $ racket -W "debug@AVFoundation input device" listdev.rkt
racket: stderr <levels> after -W switch must be one of the following
<level>s:
none fatal error warning info debug
or up to one such <level> in whitespace-separated sequence of
<level>@<name>
given: debug@AVFoundation input device
Use the --help or -h flag for help.

Okay, after talking to @jeapostrophe it looks like the -W
flag cannot handle topics with spaces. Thanks anyway. :slightly_smiling_face:

that probably deserves a bug in the racket repo

yeah, looks like it!

@leif You’re defining/using it like this: #lang racket/base
(define-logger \|name with spaces\|)
(\|log-name with spaces-debug\| "hi")
?

dutifully logs this as a (not-yet) to-do https://github.com/greghendershott/racket-mode/issues/277

@notjack Fair. I will file it when I get home. (Long plain rides are long…)

@greg Ha…..close, the log name is actually much more sane. Its just that the topic has spaces.

(For the record, I didn’t pick the topic, ffmpeg (or rather AVFoundation) did.)

Ooohhh…I just realized, I could easily turn video into a voip chat application.

(Admittedly not a very good one in terms of compression, but still pretty cool.)

@leif heckin’ do it