leif
2018-2-21 11:54:16

@robby Basically, I would like to take the definitions text% field in DrRacket and place it in a new window, if that’s possible.


ryanc
2018-2-21 11:54:34

@leif the mixins in macro-debugger/syntax-browser/text might be useful


leif
2018-2-21 11:55:02

@ryanc Oh cool, thanks. I’ll take a look at that.


robby
2018-2-21 12:17:03

Cmd-n isn’t what you want, I presume, but it does that job.


robby
2018-2-21 12:17:18

(So I am still not getting it.)


leif
2018-2-21 12:23:41

Hmm…well you know how you can use the slideshow/repl package to embed a racket:text% object in a slideshow, I would like to put a text object in a slideshow and still have arrows being drawn.


leif
2018-2-21 12:24:22

Does that make any more sense?


leif
2018-2-21 12:31:20

Although as a side note (and @mflatt might know this one), in slideshow/repl, is there any way to have interactions typed into the result-area take place inside of a module, like the interactions area in drracket?


leif
2018-2-21 12:31:38

Or at least have the provided variables bound?


mflatt
2018-2-21 13:10:30

@leif That might be possible by supplying make-namespace functions to repl-area and make-repl-group so that they work together, but I wouldn’t be surprised if an extra hook is needed to make it work well.


abmclin
2018-2-21 17:34:42

hello @mflatt I was using PLTADDONDIR environment variable to configure a private addon directory to install various packages for a Racket application’s use. I noticed that if I give relative paths to the different addon directory I get collection not found errors. It appears the addon directory is being resolved relative to location of the installed package instead of the working directory I was in when I export the PLTADDONDIR variable which I had naively been expecting. If I use absolute paths, it works fine which isn’t a surprise. Documentation doesn’t mention addon-dir should be given as absolute path, is this something that should be mentioned?


greg
2018-2-21 17:59:06

@pocmatos I’ve used scribble/srcdoc a little (in Frog) and I like it for reference docs. (I haven’t gone back and rewritten existing docs to use it, but I’d use it for new projects.) Of course I’d still have a main container .scrbl for prose and @include-extracted each .rkt with a srcdoc mod. I did find I wanted a little sugar around proc-doc such as https://github.com/greghendershott/frog/blob/master/frog/private/define-doc.rkt.


mflatt
2018-2-21 18:11:44

@abmclin The PLTADDONDIR environment variable is converted to an absolute path when Racket reads the variable on startup, so normally only an absolute path makes sense. I’ll update the docs to clarify.


samth
2018-2-21 18:15:26

@mflatt I’d like to try to get the Travis and AppVeyor builds working again before merging racket7 — any thoughts on either the db+macOS issue on Travis, or the strdup issue on Windows (my attempted fix for the strdup issue didn’t work)?


mflatt
2018-2-21 19:47:43

@ryanc How well it work for the db concurrency test to use (sync (system-idle-evt)) instead of sleeping and measuring time? Your comment before characterized the test as checking whether other threads get to run, and (system-idle-evt) is a general way to test that property (as long as you can assume no other tests running in threads in the same place).


mflatt
2018-2-21 19:49:42

@samth Probably “msvcrt.dll” needs to be specified to get “strdup” or "_strdup" on Windows. I’ll see if that makes it work.


samth
2018-2-21 20:26:44

@mflatt great! why did it produce that strange crash with #f?


samth
2018-2-21 20:28:00

I’m used to getting “undefined symbol” for issues like that


mflatt
2018-2-21 20:28:12

I guess it’s not so much that “mvcrt.dll” is needed as that you need to use a _strdup and free that connect to the same allocator. (Only on Windows is there a question of which free you use.)


samth
2018-2-21 20:29:06

ah, that makes sense


githree
2018-2-21 20:48:22

DrRacket (6.12) on Windows brings unknown certificate message upon startup


spdegabrielle
2018-2-21 20:55:21

Which version of Windows? (I can test 8 &10)


githree
2018-2-21 20:55:31

windows 10


spdegabrielle
2018-2-21 20:55:47

Ok I’ll try


ryanc
2018-2-21 20:56:13

@mflatt I’m not sure how to use that in a test. To recap the problem: suppose T1 and T2 are threads, and T1 executes a db operation; I want to check that T2 is scheduled periodically for the entire duration of T1’s db op. If I only perform a single check from T2, then I can’t be sure that T2 didn’t sneak in just before or after the db operation. So I could have T2 test (sync/timeout 0 (system-idle-evt)) over and over, but that doesn’t seem better than the sleep and counter approach. I’ll change the test’s fudge factor (meant to earlier, but forgot).


mflatt
2018-2-21 20:57:22

If T2 can’t get past (sync (system-idle-evt)) by “sneaking in”. T1 would have to be specifically blocked somehow – on a semaphore, file descriptor, or something else that the scheduler would know about.


ryanc
2018-2-21 21:14:25

Oh, I see, right. It’s not exactly the property I want, but it sounds like a reasonable proxy. I’ll try that instead.