We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
syntax = "proto2"; package org.a;
message Msg { extensions 16 to max; }
syntax = "proto2"; package org.b; import "org/a/a.proto";
extend Msg { optional Test test = 16; }
message Test {}
These configuration throws error while compiling:
protoc-jar: executing: [C:\Users\D\AppData\Local\Temp\protoc3931572059064664031.exe, --plugin=protoc-gen-scala=C:\Users\D\AppData\Local\Temp\scalapbgen2982993506159287014.b at, -ID:\my_app\app, -ID:\my_app\target\protobuf_external, --scala_out=:D:\my_app\target\scala-2.11\src_managed\main \compiled_protobuf, D:\my_app\app\org\a\a.proto, D:\my_app\app\org\b\b.proto] org/b/b.proto:6:8: "Msg" is not defined. [libprotobuf WARNING google/protobuf/descriptor.cc:6117] Warning: Unused import: "org/b/b.proto" imports "org/a/a.proto" which is not used. java.lang.RuntimeException: protoc returned exit code: 1
The text was updated successfully, but these errors were encountered:
On a fast first read, it seems like the error is generated by protoc, not ScalaPB. In b.proto, the package name is missing. Can you try:
extend org.a.Msg { optional Test test = 16; }
This should pass protoc, though ScalaPB currently does not support extensions.
Sorry, something went wrong.
It works. Thanks
No branches or pull requests
org/a/a.proto
syntax = "proto2";
package org.a;
message Msg {
extensions 16 to max;
}
org/b/b.proto
syntax = "proto2";
package org.b;
import "org/a/a.proto";
extend Msg {
optional Test test = 16;
}
message Test {}
These configuration throws error while compiling:
protoc-jar: executing: [C:\Users\D\AppData\Local\Temp\protoc3931572059064664031.exe, --plugin=protoc-gen-scala=C:\Users\D\AppData\Local\Temp\scalapbgen2982993506159287014.b
at, -ID:\my_app\app, -ID:\my_app\target\protobuf_external, --scala_out=:D:\my_app\target\scala-2.11\src_managed\main
\compiled_protobuf, D:\my_app\app\org\a\a.proto,
D:\my_app\app\org\b\b.proto]
org/b/b.proto:6:8: "Msg" is not defined.
[libprotobuf WARNING google/protobuf/descriptor.cc:6117] Warning: Unused import: "org/b/b.proto" imports "org/a/a.proto" which is not used.
java.lang.RuntimeException: protoc returned exit code: 1
The text was updated successfully, but these errors were encountered: