leif
2017-9-7 14:07:00

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


leif
2017-9-7 14:07:23

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


leif
2017-9-7 14:07:31
$ 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.

robby
2017-9-7 14:13:59

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


leif
2017-9-7 15:04:19

@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.


leif
2017-9-7 15:08:12

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


notjack
2017-9-7 17:05:51

that probably deserves a bug in the racket repo


robby
2017-9-7 17:20:50

yeah, looks like it!


greg
2017-9-7 19:15:11

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


greg
2017-9-7 19:27:28

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


leif
2017-9-8 01:39:13

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


leif
2017-9-8 01:39:43

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


leif
2017-9-8 01:39:59

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


leif
2017-9-8 02:56:13

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


leif
2017-9-8 02:56:30

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


notjack
2017-9-8 03:04:20

@leif heckin’ do it