You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.007 sec <<< FAILURE! - in com.fasterxml.jackson.dataformat.protobuf.SchemaParsingTest
testPacked(com.fasterxml.jackson.dataformat.protobuf.SchemaParsingTest) Time elapsed: 0.006 sec <<< ERROR!
java.lang.IllegalStateException: Syntax error in Unnamed-protobuf-schema at 2:45: expected '/'
at com.squareup.protoparser.ProtoParser.unexpected(ProtoParser.java:903)
at com.squareup.protoparser.ProtoParser.tryAppendTrailingDocumentation(ProtoParser.java:845)
at com.squareup.protoparser.ProtoParser.readField(ProtoParser.java:347)
at com.squareup.protoparser.ProtoParser.readDeclaration(ProtoParser.java:165)
at com.squareup.protoparser.ProtoParser.readMessage(ProtoParser.java:218)
at com.squareup.protoparser.ProtoParser.readDeclaration(ProtoParser.java:152)
at com.squareup.protoparser.ProtoParser.readProtoFile(ProtoParser.java:92)
at com.squareup.protoparser.ProtoParser.parse(ProtoParser.java:61)
at com.fasterxml.jackson.dataformat.protobuf.schema.ProtobufSchemaLoader._loadNative(ProtobufSchemaLoader.java:157)
at com.fasterxml.jackson.dataformat.protobuf.schema.ProtobufSchemaLoader.parseNative(ProtobufSchemaLoader.java:131)
at com.fasterxml.jackson.dataformat.protobuf.schema.ProtobufSchemaLoader.parse(ProtobufSchemaLoader.java:105)
at com.fasterxml.jackson.dataformat.protobuf.SchemaParsingTest.testPacked(SchemaParsingTest.java:118)
I know the problem is ProtoParser, and it's deprecated. Are you going to migrate it to Wire Protocol Buffers ? As far as I see the WPB SyntaxReader class knows the comment syntax.
The text was updated successfully, but these errors were encountered:
That is: while it would be nice to upgrade, no one has had need or time to do that, so there is no active plan.
But if anyone has time & itch, I would help with PR.
I just noticed ProtoParser supports the trailing /* comment */. There is a test case.
The fix was made in the v4.0.3 (latest version)
Version 4.0.3 (2015-06-27)
Fix: Support trailing star-style comments (/* hi */) on enum values and fields.
I noticed that you've upgraded in the master branch on the March 31st. So the problem was already fixed when I reported. I was testing 2.8 branch. We can close this issue.
knoguchi
changed the title
[protobuf] . parser fails with /* comment */
[protobuf] . parser fails with /* comment */ [v2.8]
Apr 15, 2017
The Proto parser fails to parse /* */ comment. I modified the SchemaParsingTest to include the comment like this
Then run the test
I know the problem is ProtoParser, and it's deprecated. Are you going to migrate it to Wire Protocol Buffers ? As far as I see the WPB SyntaxReader class knows the comment syntax.
The text was updated successfully, but these errors were encountered: