Error while doing mvn package on the grakn source - generated class not found in grakn-grpc


#1

Is there anything extra that needs to be setup for the generation of classes in grakn-grpc:

</>
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/TxGrpcCommunicator.java:[21,30] package ai.grakn.rpc.generated does not exist
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/TxGrpcCommunicator.java:[22,46] package ai.grakn.rpc.generated.GraknOuterClass does not exist
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/TxGrpcCommunicator.java:[23,46] package ai.grakn.rpc.generated.GraknOuterClass does not exist
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/TxGrpcCommunicator.java:[57,34] cannot find symbol
symbol: class TxRequest
location: class ai.grakn.grpc.TxGrpcCommunicator
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/TxGrpcCommunicator.java:[98,69] cannot find symbol
symbol: class TxResponse
location: class ai.grakn.grpc.TxGrpcCommunicator
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/TxGrpcCommunicator.java:[60,47] cannot find symbol
symbol: class TxRequest
location: class ai.grakn.grpc.TxGrpcCommunicator
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/TxGrpcCommunicator.java:[65,54] package GraknGrpc does not exist
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/TxGrpcCommunicator.java:[76,22] cannot find symbol
symbol: class TxRequest
location: class ai.grakn.grpc.TxGrpcCommunicator
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/TxGrpcCommunicator.java:[104,28] cannot find symbol
symbol: class TxResponse
location: class ai.grakn.grpc.TxGrpcCommunicator.QueueingObserver
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/TxGrpcCommunicator.java:[144,28] cannot find symbol
symbol: class TxResponse
location: class ai.grakn.grpc.TxGrpcCommunicator.Response
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/TxGrpcCommunicator.java:[169,22] cannot find symbol
symbol: class TxResponse
location: class ai.grakn.grpc.TxGrpcCommunicator.Response
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/TxGrpcCommunicator.java:[192,50] cannot find symbol
symbol: class TxResponse
location: class ai.grakn.grpc.TxGrpcCommunicator.Response
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/TxGrpcCommunicator.java:[205,28] cannot find symbol
symbol: class TxResponse
location: class ai.grakn.grpc.TxGrpcCommunicator.Response
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/GrpcUtil.java:[38,30] package ai.grakn.rpc.generated does not exist
[ERROR] /apps/grakn/grakn-grpc/src/main/java/ai/grakn/grpc/GrpcUtil.java:[39,46] package ai.grakn.rpc.generated.GraknOuterClass does not exist
</>


#2

Yes! This is how you should clone Grakn:

git clone --recurse-submodules https://github.com/graknlabs/grakn.git

We will update the docs accordingly, thanks for noticing!