Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: error on sandstorm's util.capnp #29

Closed
zenhack opened this issue May 7, 2016 · 1 comment
Closed

Regression: error on sandstorm's util.capnp #29

zenhack opened this issue May 7, 2016 · 1 comment

Comments

@zenhack
Copy link
Contributor

zenhack commented May 7, 2016

Given the util.capnp from sandstorm with this patch applied (just adds the annotations needed for go):

diff --git a/home/isd/src/foreign/sandstorm/src/sandstorm/util.capnp b/capnp/capnp_gen/util.capnp
index d5bd809..45e7ded 100644
--- a/home/isd/src/foreign/sandstorm/src/sandstorm/util.capnp
+++ b/capnp/capnp_gen/util.capnp
@@ -166,3 +166,6 @@ interface Assignable(T) {
     set @0 (value :T) -> ();
   }
 }
+using Go = import "/zombiezen.com/go/capnproto2/go.capnp";
+$Go.package("util");
+$Go.import("zenhack.net/go/sandstorm/capnp/util");

I get this error:

$ capnp compile -I $GOPATH/src/ -ogo util.capnp 
capnpc-go: generating util.capnp: interface client util.capnp:ByteStream: template: :74:193: executing "interfaceClient" at <$.G.RemoteName>: RemoteName is not a field of struct type *main.generator
go: plugin failed: exit code 1

git bisect blames 4c8af43.

@zombiezen
Copy link
Contributor

Oops! I'll fix that this weekend. In the meantime, c634ead is a known good revision.

zenhack added a commit to zenhack/go.sandstorm that referenced this issue May 11, 2016
Just a makefile for building the sandstorm capnp stuff. Not currently
working because of a bug in capnpc-go:

    capnproto/go-capnp#29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants