On Wed, Nov 25, 2020 at 3:43 PM Matt Stern <[email protected]> wrote:

> When I try to run capnp compile, I get the following:
>
> error: Import failed: /capnp/java.capnp
>

You will need to specify the same -I flags (import path) that you normally
specify to `capnp compile` when running the Java code generator.

If I comment out the Java bits and just compile in C++ (which works for
> me), will this have any effect on the unique IDs for the structs in my
> schema file?
>

No, the auto-generated IDs do not in any way depend on the contents of
other files. Auto-generated IDs are constructed by concatenating the parent
scope ID and the type name, and then taking a hash of that.

-Kenton

-- 
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/CAJouXQ%3DgWcj8%2BbKitcAn3jSqXYmKbpLsd_wZRRQ8jaPJym7yVQ%40mail.gmail.com.

Reply via email to