Did you ever find a solution to this issue? I'm encountering the same
problem. The parsing fails if I set the name on the file object in the
response. If I don't set the name it parses correctly (and of course
generation fails without the name set.) Either way I can serialize the
CodeGeneratorResponse within my application and decode it properly myself...
On Tuesday, July 19, 2011 at 7:20:23 PM UTC-7, Alex Antonov wrote:
> I've tried to use the experimental Java support for writing the protoc
> plugins from http://codereview.appspot.com/912042/show
> Everything got compiled correctly but when I started using it, got the
> following error:
> protoc --java_out=. --plugin=protoc-gen-my --my_out=. config.proto
> --my_out: protoc-gen-my: Plugin output is unparseable.
> Redirecting the output of 'protoc-gen-my' script to a file and then
> trying to recreate the 'CodeGeneratorResponse' in code worked without
> any issues.
> However when using it with protoc, it refuses to parse it. :(
> This is the content of my 'protoc-gen-my' script:
> #cd `dirname $0`
> #java -Xdebug -
> Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 -jar
> #java -jar protobuf-java-codegen-0.1.jar 1> data.pb
> java -jar protobuf-java-codegen-0.1.jar
> Any idea what I could be doing wrong?
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.