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
{{ message }}
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.
The GUID data type bcl.Guid is a protobuf-net extension and not supported by the Google language spec, nor the protoc compiler. Can you rename this issue to something like "Add support for protobuf-net GUID values"?
One work around would be to modify (hand-edit) the field from "bcl.Guid" to "binary" and encode the binary as a string; e.g., "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0". I am fairly certain that this would be wire-compatible with protobuf-net code, and should interoperate with no problem.
Otherwise, it will be some work to modify Froto to accept this: the parser currently uses a Parsec helper function to parse numeric values and I'm pretty sure that function cannot be taught to handle GUID/UUID format. So, that means writing a complete numeric parser that also can consume GUID's.
Can you just use the work-around, instead?
Schwem
changed the title
Parser crashs when working with Guid / - and default
Add support for protobuf-net bcl-Types
Oct 31, 2016
The following
.proto
(created with protobuf-net)crashes with this message:
I try to parse it like this:
FSharpList<Ast.PStatement> s = Parse.fromString(proto);
The text was updated successfully, but these errors were encountered: