[protobuf] Re: A new ActionScript 3 protobuf implementation
Thanks for your reporting. I have fixed it. Please download it again. On 1月20日, 上午6时39分, elenzil dococe...@gmail.com wrote: Hi Atry - i am curious to try out your new protobuf plugin. however i encountered a problem running the plugin, and also a problem reporting a new issue on the protoc-gen-as3 homepage, so i'm putting the report here. best, Orion issue report: What steps will reproduce the problem? 1. download and build the 2.3.1 repo of protoc 2. download and extract protoc-gen-as3-0.8rc2-bin.tar.gz 3. run protoc with the following command line: /home/orion/sandbox/orion/pb2.3.0/linux/bin/protoc --plugin=protoc-gen- as3=/home/orion/sandbox/orion/pb2.3.0/protoc-gen-as3/dist/protoc-gen- as3 --as3_out foo ./xs1.proto (full paths included in case i'm doing something dumb) What is the expected output? What do you see instead? the result is the following error: - /home/orion/sandbox/orion/pb2.3.0/protoc-gen-as3/dist/protoc-gen-as3: program not found or is not executable --as3_out: protoc-gen-as3: Plugin failed with status code 1. - if i remove -e from the first line of protoc-gen-as3, then the error changes to: - Exception in thread main java.lang.NoClassDefFoundError: com/netease/ protocGenAs3/Main Caused by: java.lang.ClassNotFoundException: com.netease.protocGenAs3.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:303) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) Could not find the main class: com/netease/protocGenAs3/Main. Program will exit. --as3_out: protoc-gen-as3: Plugin failed with status code 1. - What version of the product are you using? On what operating system? these results are consistent on OS X (snow leopard) and on a centos linux box: Linux version 2.6.18-164.6.1.el5 (mockbu...@builder10.centos.org) Please provide any additional information below. -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
[protobuf] Re: A new ActionScript 3 protobuf implementation
I will translate it to English when I have time. On 1月18日, 上午7时51分, Kenton Varda ken...@google.com wrote: I've added this. It's exciting to see the plugin system being used successfully already! Unfortunately I don't know enough Chinese to read your docs. :/ On Sun, Jan 17, 2010 at 2:33 AM, Atry pop.a...@gmail.com wrote: Hello, I wanted to announce a ActionScript 3 protobuf implementation: https://code.google.com/p/protoc-gen-as3/ Currently it has all protobuf 2.3 futures except service and group, more than any exists AS3 implement. A message using extension or packed repeated fields can also be encoded and decoded. The compiler is written in Java, based on protobuf 2.3 's plugin. I wish it would be added on http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.comprotobuf%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/protobuf?hl=en. -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
[protobuf] Why not to allow [packed = true] for all repeated field?
When I set [packed = true] on a nested message field, I receive this error: [packed = true] can only be specified for repeated primitive fields. I wonder why it is disallowed. The output for packed nested field list as the below: The field number and wire type LENGTH_DELIMITED. Length of all elements. Length of the first element. Content of the first element. Length of the second element. Content of the second element. ... Length of the nth element. Content of the nth element. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.