p.kushwaha97
2020-5-5 13:08:03

samth
2020-5-5 13:12:06

what should the type of create-generator be?


p.kushwaha97
2020-5-5 13:21:35

I’m not sure about racket/generator internals. Is there a theoretical limitation in design of the type system that generators cannot be handled?


samth
2020-5-5 13:21:55

that all depends on what create-generator does


samth
2020-5-5 13:22:04

I haven’t looked at it


p.kushwaha97
2020-5-5 13:23:50

I had a quick look, it’s a bit dense and uses continuations for the implementation https://github.com/racket/racket/blob/5147771b04ed1d6d825c049c0870bc6d7c7de15b/racket/collects/racket/generator.rkt#L87


samth
2020-5-5 13:24:24

yes, it’s pretty tricky code


p.kushwaha97
2020-5-5 13:24:52

Anyways, right now I’m leaving untyped the part of my code which needs to use generators, but this is just another “it would be nice to have another base library in typed racket” request.


greg
2020-5-5 14:19:09

So YIL (yesterday I learned) about this protocol where macros can emit info messages to an online-check-syntax logger, and the data member has a value to describe a tooltip: https://github.com/greghendershott/racket-mode/issues/451


greg
2020-5-5 14:19:38

I can’t seem to find documentation for this, so I’m learning about it “forensically”.




greg
2020-5-5 14:25:14

@samth Thanks. I had overlooked that. But. That just says there is a list of syntax objects. For each object, there is more to the story. Apparently there’s a syntax property mouse-over-tooltips. Its value comes in at least two flavors. One is a simple (vector beg end text). That’s used by e.g. Pie. Another thing I’ve seen is Typed Racket supplies a list of vectors. Furthermore the text isn’t a string, it’s a thunk to call to get the string.


greg
2020-5-5 14:25:37

If that’s the whole story, fine, I figured it out. Maybe I could even submit a PR to extend the docs you pointed me to.


greg
2020-5-5 14:26:07

I’m just wondering if (a) I really have it correct and (b) are there some 3rd or more “flavors” of the value I haven’t yet discovered. :slightly_smiling_face:



samth
2020-5-5 14:27:48

i think we should fix the lack of indexing of those symbols


greg
2020-5-5 14:27:53

Ugh I’ve seen that page but somehow managed to overlook the tooltips part at the end. Thanks!


greg
2020-5-5 14:28:24

Indexing would help, as would maybe a link from that first page you showed me, to the second.


greg
2020-5-5 14:28:37

When I finish this up, I’ll see if I could supply a PR to do those things for the docs….


greg
2020-5-5 14:30:11

Thanks again and big :thumbsup: that this protocol was actually documented.


samth
2020-5-5 14:31:00

if you look at scribblings/reference/mz.rkt, the indexed-racket function is what you want to use


samth
2020-5-5 14:31:16

I don’t know if that’s available in some more sensible location


jesseikenna
2020-5-5 17:05:57

@jesseikenna has joined the channel


auke
2020-5-5 20:22:39

@auke has joined the channel


rostero
2020-5-5 21:06:07

@rostero has joined the channel


deactivateduser60718
2020-5-5 23:04:20

https://pkg-build.racket-lang.org/server/built/fail/polyglot.txt

I’m guessing this really is temporary, but I’m putting this here in case there’s a network configuration or firewall issue I don’t know about.

pkg: Contacting <http://github.com\|github.com> pkg: Network error; retrying after 0.1s pkg: Contacting <http://github.com\|github.com> pkg: Network error; retrying after 0.2s pkg: Contacting <http://github.com\|github.com> pkg: Network error; retrying after 0.4s pkg: Contacting <http://github.com\|github.com> pkg: Network error; retrying after 0.8s pkg: Contacting <http://github.com\|github.com> pkg: Network error; retrying after 1.6s pkg: Contacting <http://github.com\|github.com> tcp-connect: connection failed; host not found address: <http://github.com\|github.com> port number: 443 system error: Temporary failure in name resolution; gai_err=-3 &lt;snip&gt;


deactivateduser60718
2020-5-5 23:11:39

> package builds are performed on a VM without network connectivity. Never mind.


sorawee
2020-5-5 23:21:47

Is this for testing or for documentation?


sorawee
2020-5-5 23:22:25

If it’s documentation, you can use make-log-based-eval to workaround the issue


sorawee
2020-5-5 23:23:57

But if it’s for testing, then it won’t work. You can test however if you are in the pkg-build environment via PLT_PKG_BUILD_SERVICE env var, and bail out if that’s the case.


deactivateduser60718
2020-5-5 23:24:35

Metapackage, so it has an implies for doc, test, and lib packages. I tried to let each of them pin a GitHub URL dependency to give myself room to publish a breaking change to another package. It’s on me for missing the note about network connectivity.


notjack
2020-5-5 23:54:43

It’s not on you. The error message does not explain the problem.


michael.wijaya
2020-5-6 04:31:47

@michael.wijaya has joined the channel