Original author of capnp-ts here: I've been watching this thread from a distance and am glad people are finding my old work in progress here useful enough to try forking it – the situation with me personally has been ~4 years of being locked up with an employer that did not allow me opportunity to contribute back to this project, even on my free time. Hence the complete radio silence on the repo and in these discussion groups.
Fortunately that job is going away in a few weeks and I look forward to finally getting a chance to upgrade the dependencies/build tooling, and get everything into good working order before taking a look at the state of RPC and what's been happening with the forks (especially Ryan's fork). Please reach out if you want to work together with me on this! I regret switching the build process from a Makefile to gulp; that was at the behest of a very loud contributor who hated it simply because he didn't understand it. I'll probably bring that back because the gulpfile never worked quite as well as the Makefile did. I'm also open to other suggestions on a good build tool for this because it's been some time since I've been embedded in the JS ecosystem. On Sun, Mar 28, 2021, at 8:50 PM, Ryan Patterson wrote: > OK, maybe not all the credit is owed there. Check my fork again, notice that > I upgraded both the built-in capnp schema files as well as the gulpfile. You > should be able to do a clean "yarn build" after that point. > > Node v15.6.0 | Yarn 1.19.1 > > $ gulp --version > CLI version: 2.3.0 > Local version: 4.0.2 > > On Monday, March 29, 2021 at 3:02:51 AM UTC+8 [email protected] wrote: >> Quoting Ryan Patterson (2021-03-25 22:04:01) >> >> > This might not be what you're looking for, but I took the >> > fasterthanlime fork of capnp-ts and upgraded all of the dependencies, >> > and in my test application I was able to use a go capnp server with a >> > Typescript capnp client over web sockets. Relevant links: >> > * [1]my updated fork of capnp-ts >> > * [2]glue between capnp-ts and web sockets >> > * [3]the original work on capnp-ts RPC (to whom the credit is owed) >> >> How did you build this, and how well does it actually work? I tried forking >> the >> fasterthanlime fork it myself, but it looked to me like it was left in a >> broken >> state; I fixed a few things on my own fork[1], but when running tsc >> there are still a couple errors: >> >> $ tsc >> packages/capnpc-ts/lib/generators.ts:931:9 - error TS2345: Argument of type >> 'undefined' is not assignable to parameter of type 'readonly Expression[]'. >> >> 931 __ // arguments >> ~~ >> >> packages/capnpc-ts/lib/generators.ts:985:17 - error TS2345: Argument of type >> 'undefined' is not assignable to parameter of type 'readonly Expression[]'. >> >> 985 __ // parameters >> ~~ >> I assume those had been placeholders. Did you just plow ahead using the >> generated code anyway (in which case I assume your schema didn't trigger >> that case), or are you doing something that I'm missing when building? >> >> I had a heck of a time trying to get the gulpfile to work, and ended up >> just giving up, since running tsc from the top level seemed to work with >> some tweaking, modulo the obviously legitimate errors above. >> >> -Ian >> >> [1]: https://github.com/zenhack/capnp-ts/tree/rpc > > -- > You received this message because you are subscribed to the Google Groups > "Cap'n Proto" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/capnproto/83caf638-062f-416b-b726-3c83742ace2fn%40googlegroups.com > > <https://groups.google.com/d/msgid/capnproto/83caf638-062f-416b-b726-3c83742ace2fn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "Cap'n Proto" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/91ee4f10-e78d-4689-aac3-c2bac89a3a53%40www.fastmail.com.
