Closed suiiceice closed 3 years ago
目前处理的一些问题, 可以通过以下方式先绕过,后面发布新版本解决。
syntax = "proto3";
option java_package = "test";
message Line{
string id = 1;
string start = 2;
string end = 3;
enum CrossDirection {
UNKNOWN = 0; // Future-proof default
LEFT = 1;
RIGHT = 2;
}
}
message LineCount{
int32 count = 1;
string line_id = 2;
Line.CrossDirection cross_direction = 3;
}
java_package 目前要求加上,后续会修正该问题 在测试你的例子里,发现 Point 对象也没有定义,也会出错 对象引用的问题目前测试未发现有问题
谢谢。不过我调整之后发现,这个错误是在加入package之后出现的。
syntax = "proto3";
package acv.proto.vca;
option java_package = "test";
message Line{
string id = 1;
Point start = 2;
Point end = 3;
enum CrossDirection {
UNKNOWN = 0; // Future-proof default
LEFT = 1;
RIGHT = 2;
}
}
message Point {
float x = 1;
float y = 2;
}
message LineCount{
int32 count = 1;
string line_id = 2;
Line.CrossDirection cross_direction = 3;
}
收到 package 处理对依赖识别有点问题,稍后版本修复