-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output types option (class vs struct) #14
Comments
At the moment |
I try to write custom option by instruction:
and added some debug output lines to private string generateMessage(DescriptorProto messageType, size_t indent = 0)
{
...
import std.stdio;
stderr.writeln("options: ", messageType.options.toJSONValue.toPrettyString);
...
} and have no output (only From protobuf documentations:
but in Proto3 support extensions only for custom options:
It's not implemented yet? |
Other case of select struct vs class may be passing option to a cmd line of plugin, like this: protocolbuffers/protobuf#4759 I add output of input arguments in int main(string[] args)
{
import std.algorithm : map;
import std.array : array;
import std.range : isInputRange, take, walkLength;
import std.stdio : stdin, stdout;
import std.stdio;
stderr.writeln(args);
... and try to build my
What a curse is with D and protoc? I have no idea what I'm doing wrong... |
I think that plugin parameters are passed in the |
Oh... Thank you! Maybe about options I made the same stupid mistake? |
From what I saw, I don't think that the Maybe a simpler idea would be to use some special comments... |
I think this option should be added to the README. --d_opt=message-as-struct |
I was edit an output files and change
class
tostruct
and no difference are detect. Have you any reason to use classes instead structs? Maybe it can be an option? But I don't know how to properly add this option to plugin command line or proto files.Here I found no option for output types =(
https://github.com/dcarp/protobuf-d/blob/master/protoc_gen_d/protoc-gen-d.d#L150
The text was updated successfully, but these errors were encountered: