QProtobuf failed on nested data
-
Hi all!
I'm trying to use a big proto file with lots of dependencies.
During the build, I've found some errors.no type named 'Logo' in namespace 'project::teams::Career_QtProtobufNested::Team_QtProtobufNested'; did you mean 'CreateTeamRequest_QtProtobufNested::Logo'?
The errors (there are many similar but of different types) are generated from some .proto like this.
syntax = "proto3"; package project.teams; ... message Team { ... message Logo { uint32 bg = 1; uint32 fg = 2; } ... Logo logo = 4; ... } message Career { message Team { ... teams.Team.Logo logo = 3; } ... Team team = 3; ... }
From my noob point of view, I would expect to generate a
project::teams::Team_QtProtobufNested
instead of
project::teams::Career_QtProtobufNested::Team_QtProtobufNested
This proto already worked on a C# application, I'm trying in my spare time to learn something new in the Qt field.
-
Hi and welcome to devnet,
I have not used the Qt Protobuf module yet so can you share the steps you did that triggered this issue ?
-
Hi and welcome to devnet,
I have not used the Qt Protobuf module yet so can you share the steps you did that triggered this issue ?
@SGaist thank you for the welcoming :D
I've prepared a project that can be used to reproduce the problem or check my settings; I think that can be clearer.
https://github.com/mstefanini/QtProtobufNestedCrash
The pattern used in the protobuf is most likely supported by the C# and Erlang libraries, not the Qt implementation.
I'm trying only to understand if I've set something wrong and fix it accordingly.Thank you in advance :)