Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QProtobuf failed on nested data
Forum Updated to NodeBB v4.3 + New Features

QProtobuf failed on nested data

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 230 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DevSki
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by SGaist
      #2

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        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 ?

        D Offline
        D Offline
        DevSki
        wrote on last edited by
        #3

        @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 :)

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved