Build error implementing raw Cap'n Proto

16 views
Skip to first unread message

Valentino Pecaoco

unread,
Dec 20, 2024, 4:05:26 AM12/20/24
to Sandstorm Development
Hello all, good day.

I would like to request assistance for an issue I'm facing.

I have a Sandstorm Go project that accesses an external HTTP API using raw capnp.

I installed the capnp tool using "Release Tarball" method as per instructions in the Cap'n Proto website.

My schema compiles ok via "capnp compile -ogo <schema file>", and there were no code errors in the IDE.

But when building the project, I get several errors of the following kind:

"
Building go server
# zenhack.net/go/sandstorm/capnp/util
vendor/zenhack.net/go/sandstorm/capnp/util/util.capnp.go:1638:46: seg.Message().AddCap undefined (type *capnp.Message has no field or method AddCap)
"

I'm using Cline as assistant, and Cline suggests that the issue stems from incompatible Cap'n Proto versions between the generated schema code (v3) and the Go Sandstorm librarie(s) which use v2 (zenhack.net/go/sandstorm?).

Thanks in advance.

Jacob Weisz

unread,
Dec 20, 2024, 4:21:24 AM12/20/24
to sandst...@googlegroups.com
So I believe the latest versions of what was "go.sandstorm" ended up merged in with the Tempest codebase, and I believe the Tempest one is built against go-capnp v3. But I am unsure where the AddCap method is coming from in your error message. (Also presently, Tempest's repo does not contain the generated .capnp.go files that the go.sandstorm library held.)


--
  Jacob Weisz

--
You received this message because you are subscribed to the Google Groups "Sandstorm Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sandstorm-de...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages