rongfengliang / protobuf-net

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

OptimizeMode missing LITE_RUNTIME option #94

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Including the line:

option optimize_for = LITE_RUNTIME;

in the .proto file will cause the compiler to report a parsing error:

Enum type "google.protobuf.FileOptions.OptimizeMode" has no value named
"LITE_RUNTIME" for option "google.protobuf.FileOptions.optimize_for".

I think that if LITE_RUNTIME isn't supported by protobuf-net, then it
should gracefully use the default OptimizeMode and continue to successfully
generate the proper output rather than reporting an error (should be a
warning instead).

This was tested using protobuf-net r282 on Windows XP.

Original issue reported on code.google.com by ttkamin...@gmail.com on 20 Feb 2010 at 7:12

GoogleCodeExporter commented 9 years ago

Original comment by marc.gravell on 20 Feb 2010 at 7:36

GoogleCodeExporter commented 9 years ago
+1. Using protobuf-net-VS10.msi same problem. Generated file is removed from 
SolutionExplorer

Original comment by rjge...@gmail.com on 7 Oct 2010 at 6:20

GoogleCodeExporter commented 9 years ago
Hello !
Is there any workaround on V1 (other than rewriting .proto) ?
Thanks.

Original comment by ben....@gmail.com on 19 Dec 2011 at 10:56