-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
syntax error for generated code from protobuf; blocker for using protobuf in MOJO development #76
Comments
Can you provide a minimal java source file to reproduce this issue? QDox should always ignore everything after |
Hi @rfscholte, I'm attaching the Java file, Pom and the proto file below. The versions in the dependencies matter. I got NPE with older version of the maven-plugin-plugin, but with this version I got syntax error. java
proto
pom
|
I'm not interested in these files, but only in the one under |
There you go. I was trying to use it in the test myself but I'm struggling to run the tests locally. It doesn't seem to build on Big Sur. (error=86, Bad CPU type in executable)
|
I wrote a test based on your input and I can't reproduce your issue, the test succeeds. |
Protobuf generated code contains comment like
// @@protoc_insertion_point(interface_extends:Model)
. Obviously the parser can't handle the@@
in the comment. Since this library is used in maven-plugin-plugin (https://github.com/apache/maven-plugin-tools/blob/master/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor.java#L440), it means we can't use protobuf in maven plugin development.Is it possible to update the grammar?
The text was updated successfully, but these errors were encountered: