JuliaIO / ProtoBuf.jl

Julia protobuf implementation
Other
205 stars 55 forks source link

Import of .proto files doesn't seem to work when generating #163

Closed mkschulze closed 3 years ago

mkschulze commented 3 years ago

Hello,

we are trying to generate these .proto files with ProtoBuf.jl

https://github.com/graknlabs/protocol/tree/master/protobuf

Our attempt here generates a few of the files, but not all of them. Below is the error message. It seems to be struggling with imports. The files are actually there.

We have steps to reproduce here: https://github.com/Humans-of-Julia/GraknClient.jl/tree/protoc-gen/src/generated

for i in protobuf/*; do [[ -d $i ]] && continue [[ $i == "BUILD" ]] || protoc -I=protobuf --julia_out=. $i done protobuf/concept.proto: File not found. answer.proto:23:1: Import "protobuf/concept.proto" was not found or had errors. answer.proto: "Concept" is not defined. answer.proto:33:5: "Concept" is not defined. answer.proto:46:5: "Concept" is not defined. protobuf/database.proto: File not found. protobuf/session.proto: File not found. protobuf/transaction.proto: File not found. grakn.proto:23:1: Import "protobuf/database.proto" was not found or had errors. grakn.proto:24:1: Import "protobuf/session.proto" was not found or had errors. grakn.proto:25:1: Import "protobuf/transaction.proto" was not found or had errors. grakn.proto:31:28: "Database.Contains.Req" is not defined. grakn.proto:31:60: "Database.Contains.Res" is not defined. grakn.proto:32:26: "Database.Create.Req" is not defined. grakn.proto:32:56: "Database.Create.Res" is not defined. grakn.proto:33:23: "Database.All.Req" is not defined. grakn.proto:33:50: "Database.All.Res" is not defined. grakn.proto:34:26: "Database.Delete.Req" is not defined. grakn.proto:34:56: "Database.Delete.Res" is not defined. grakn.proto:36:23: "Session.Open.Req" is not defined. grakn.proto:36:50: "Session.Open.Res" is not defined. grakn.proto:37:24: "Session.Close.Req" is not defined. grakn.proto:37:52: "Session.Close.Res" is not defined. grakn.proto:40:24: "Session.Pulse.Req" is not defined. grakn.proto:40:52: "Session.Pulse.Res" is not defined. grakn.proto:45:29: "Transaction.Req" is not defined. grakn.proto:45:62: "Transaction.Res" is not defined. protobuf/answer.proto: File not found. protobuf/options.proto: File not found. query.proto:23:1: Import "protobuf/answer.proto" was not found or had errors. query.proto:24:1: Import "protobuf/options.proto" was not found or had errors. query.proto:31:9: "Options" is not defined. query.proto:62:22: "ConceptMap" is not defined. query.proto:72:13: "Numeric" is not defined. query.proto:82:22: "ConceptMapGroup" is not defined. query.proto:92:22: "NumericGroup" is not defined. query.proto:101:22: "ConceptMap" is not defined. protobuf/options.proto: File not found. session.proto:23:1: Import "protobuf/options.proto" was not found or had errors. session.proto:38:13: "Options" is not defined. protobuf/concept.proto: File not found. protobuf/logic.proto: File not found. protobuf/options.proto: File not found. protobuf/query.proto: File not found. transaction.proto:23:1: Import "protobuf/concept.proto" was not found or had errors. transaction.proto:24:1: Import "protobuf/logic.proto" was not found or had errors. transaction.proto:25:1: Import "protobuf/options.proto" was not found or had errors. transaction.proto:26:1: Import "protobuf/query.proto" was not found or had errors. transaction.proto:41:13: "Query.Req" is not defined. transaction.proto:42:13: "ConceptManager.Req" is not defined. transaction.proto:43:13: "Thing.Req" is not defined. transaction.proto:44:13: "grakn.protocol.Type.Req" is not defined. transaction.proto:45:13: "LogicManager.Req" is not defined. transaction.proto:46:13: "Rule.Req" is not defined. transaction.proto:58:13: "Query.Res" is not defined. transaction.proto:59:13: "ConceptManager.Res" is not defined. transaction.proto:60:13: "Thing.Res" is not defined. transaction.proto:61:13: "grakn.protocol.Type.Res" is not defined. transaction.proto:62:13: "LogicManager.Res" is not defined. transaction.proto:63:13: "Rule.Res" is not defined. transaction.proto:76:13: "Options" is not defined.