AlexanderSkvortsov / protobuf-embedded-c

Automatically exported from code.google.com/p/protobuf-embedded-c
0 stars 0 forks source link

option optimize_for = LITE_RUNTIME; does not work with protoc-1.0M3.jar #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to generate files with .proto file containing option optimize_for = 
LITE_RUNTIME; as the first line.

What is the expected output? 
No errors

What do you see instead?
java -jar ..\protoc-1.0M3.jar SensorDevicesProtocolBuffers.proto
line 1:22 mismatched input 'LITE_RUNTIME' expecting STRING
C:\Users\Vlad\Documents\HIWI\probuf-workspace-codegoogle\edu.tum.cs.ccts.protobu
f.embedded\grammar\ConstraintChecker.g: node from line 0:0 mismatched tree node:
 <mismatched token: [@6,22:33='LITE_RUNTIME',<13>,1:22], resync=option optimize_
for = LITE_RUNTIME;

package SensorDevices;> expecting <UP>
C:\Users\Vlad\Documents\HIWI\probuf-workspace-codegoogle\edu.tum.cs.ccts.protobu
f.embedded\grammar\EmbeddedCGen.g: node from line 0:0 mismatched tree node: <mis
matched token: [@6,22:33='LITE_RUNTIME',<13>,1:22], resync=option optimize_for =
 LITE_RUNTIME;

package SensorDevices;> expecting <UP>
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.NullPointerException
        at edu.tum.cs.ccts.protobuf.embedded.Protoc.generate(Protoc.java:152)
        at edu.tum.cs.ccts.protobuf.embedded.Protoc.main(Protoc.java:128)
        ... 5 more

What version of the product are you using?
protoc-1.0M3.jar

On what operating system?
Windows XP SP 3

Please provide any additional information below.

If I use "LITE_RUNTIME" it works, but this is incompatible with csharp protogen 
nor does it match the documented format in the Options section of the Protocol 
Buffers Language Guide.

Original issue reported on code.google.com by alan.joh...@gd-ais.com on 8 Mar 2013 at 3:43

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by wolfgang.schwitzer on 14 Mar 2013 at 9:17