Skip to content
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

Getting Errors when generating new protos using swift protobuf #197

Closed
garthvh opened this issue Sep 8, 2022 · 1 comment · Fixed by #198
Closed

Getting Errors when generating new protos using swift protobuf #197

garthvh opened this issue Sep 8, 2022 · 1 comment · Fixed by #198
Assignees

Comments

@garthvh
Copy link
Member

garthvh commented Sep 8, 2022

Generating admin.proto...
module_config.proto:90:7: "DEFAULT" is already defined in "ModuleConfig.SerialConfig".
module_config.proto:90:7: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "DEFAULT" must be unique within "ModuleConfig.SerialConfig", not just within "Serial_Mode".
mesh.proto:8:1: Import "module_config.proto" was not found or had errors.
mesh.proto:83:5: "UNSET" is already defined in "Position".
mesh.proto:83:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "UNSET" must be unique within "Position", not just within "AltSource".
mesh.proto:88:5: "MANUAL" is already defined in "Position".
mesh.proto:88:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "MANUAL" must be unique within "Position", not just within "AltSource".
mesh.proto:93:5: "GPS_INTERNAL" is already defined in "Position".
mesh.proto:93:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "GPS_INTERNAL" must be unique within "Position", not just within "AltSource".
mesh.proto:98:5: "GPS_EXTERNAL" is already defined in "Position".
mesh.proto:98:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "GPS_EXTERNAL" must be unique within "Position", not just within "AltSource".
mesh.proto:218:3: "UNSET" is already defined in file "telemetry.proto".
mesh.proto:218:3: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "UNSET" must be unique within the global scope, not just within "HardwareModel".
mesh.proto:838:3: "UNSET" is already defined in file "telemetry.proto".
mesh.proto:838:3: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "UNSET" must be unique within the global scope, not just within "Constants".
mesh.proto:1234:5: "ModuleConfig" is not defined.
admin.proto:10:1: Import "mesh.proto" was not found or had errors.
admin.proto:11:1: Import "module_config.proto" was not found or had errors.
admin.proto:128:5: "User" is not defined.
admin.proto:148:5: "ModuleConfig" is not defined.
admin.proto:178:5: "User" is not defined.
admin.proto:197:5: "ModuleConfig" is not defined.
Generating apponly.proto...
Generating cannedmessages.proto...
Generating channel.proto...
Generating config.proto...
Generating device_metadata.proto...
Generating deviceonly.proto...
module_config.proto:90:7: "DEFAULT" is already defined in "ModuleConfig.SerialConfig".
module_config.proto:90:7: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "DEFAULT" must be unique within "ModuleConfig.SerialConfig", not just within "Serial_Mode".
mesh.proto:8:1: Import "module_config.proto" was not found or had errors.
mesh.proto:83:5: "UNSET" is already defined in "Position".
mesh.proto:83:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "UNSET" must be unique within "Position", not just within "AltSource".
mesh.proto:88:5: "MANUAL" is already defined in "Position".
mesh.proto:88:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "MANUAL" must be unique within "Position", not just within "AltSource".
mesh.proto:93:5: "GPS_INTERNAL" is already defined in "Position".
mesh.proto:93:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "GPS_INTERNAL" must be unique within "Position", not just within "AltSource".
mesh.proto:98:5: "GPS_EXTERNAL" is already defined in "Position".
mesh.proto:98:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "GPS_EXTERNAL" must be unique within "Position", not just within "AltSource".
mesh.proto:218:3: "UNSET" is already defined in file "telemetry.proto".
mesh.proto:218:3: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "UNSET" must be unique within the global scope, not just within "HardwareModel".
mesh.proto:838:3: "UNSET" is already defined in file "telemetry.proto".
mesh.proto:838:3: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "UNSET" must be unique within the global scope, not just within "Constants".
mesh.proto:1234:5: "ModuleConfig" is not defined.
deviceonly.proto:8:1: Import "mesh.proto" was not found or had errors.
deviceonly.proto:24:3: "MyNodeInfo" is not defined.
deviceonly.proto:29:3: "User" is not defined.
deviceonly.proto:34:12: "NodeInfo" is not defined.
deviceonly.proto:39:12: "MeshPacket" is not defined.
deviceonly.proto:53:3: "MeshPacket" is not defined.
Generating localonly.proto...
module_config.proto:90:7: "DEFAULT" is already defined in "ModuleConfig.SerialConfig".
module_config.proto:90:7: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "DEFAULT" must be unique within "ModuleConfig.SerialConfig", not just within "Serial_Mode".
localonly.proto:8:1: Import "module_config.proto" was not found or had errors.
localonly.proto:36:3: "Config.WiFiConfig" is not defined.
localonly.proto:65:3: "ModuleConfig.MQTTConfig" is not defined.
localonly.proto:70:3: "ModuleConfig.SerialConfig" is not defined.
localonly.proto:75:3: "ModuleConfig.ExternalNotificationConfig" is not defined.
localonly.proto:80:3: "ModuleConfig.StoreForwardConfig" is not defined.
localonly.proto:85:3: "ModuleConfig.RangeTestConfig" is not defined.
localonly.proto:90:3: "ModuleConfig.TelemetryConfig" is not defined.
localonly.proto:95:3: "ModuleConfig.CannedMessageConfig" is not defined.
Generating mesh.proto...
module_config.proto:90:7: "DEFAULT" is already defined in "ModuleConfig.SerialConfig".
module_config.proto:90:7: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "DEFAULT" must be unique within "ModuleConfig.SerialConfig", not just within "Serial_Mode".
mesh.proto:8:1: Import "module_config.proto" was not found or had errors.
mesh.proto:83:5: "UNSET" is already defined in "Position".
mesh.proto:83:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "UNSET" must be unique within "Position", not just within "AltSource".
mesh.proto:88:5: "MANUAL" is already defined in "Position".
mesh.proto:88:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "MANUAL" must be unique within "Position", not just within "AltSource".
mesh.proto:93:5: "GPS_INTERNAL" is already defined in "Position".
mesh.proto:93:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "GPS_INTERNAL" must be unique within "Position", not just within "AltSource".
mesh.proto:98:5: "GPS_EXTERNAL" is already defined in "Position".
mesh.proto:98:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "GPS_EXTERNAL" must be unique within "Position", not just within "AltSource".
mesh.proto:218:3: "UNSET" is already defined in file "telemetry.proto".
mesh.proto:218:3: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "UNSET" must be unique within the global scope, not just within "HardwareModel".
mesh.proto:838:3: "UNSET" is already defined in file "telemetry.proto".
mesh.proto:838:3: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "UNSET" must be unique within the global scope, not just within "Constants".
mesh.proto:1234:5: "ModuleConfig" is not defined.
Generating module_config.proto...
module_config.proto:90:7: "DEFAULT" is already defined in "ModuleConfig.SerialConfig".
module_config.proto:90:7: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "DEFAULT" must be unique within "ModuleConfig.SerialConfig", not just within "Serial_Mode".
Generating mqtt.proto...
module_config.proto:90:7: "DEFAULT" is already defined in "ModuleConfig.SerialConfig".
module_config.proto:90:7: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "DEFAULT" must be unique within "ModuleConfig.SerialConfig", not just within "Serial_Mode".
mesh.proto:8:1: Import "module_config.proto" was not found or had errors.
mesh.proto:83:5: "UNSET" is already defined in "Position".
mesh.proto:83:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "UNSET" must be unique within "Position", not just within "AltSource".
mesh.proto:88:5: "MANUAL" is already defined in "Position".
mesh.proto:88:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "MANUAL" must be unique within "Position", not just within "AltSource".
mesh.proto:93:5: "GPS_INTERNAL" is already defined in "Position".
mesh.proto:93:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "GPS_INTERNAL" must be unique within "Position", not just within "AltSource".
mesh.proto:98:5: "GPS_EXTERNAL" is already defined in "Position".
mesh.proto:98:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "GPS_EXTERNAL" must be unique within "Position", not just within "AltSource".
mesh.proto:218:3: "UNSET" is already defined in file "telemetry.proto".
mesh.proto:218:3: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "UNSET" must be unique within the global scope, not just within "HardwareModel".
mesh.proto:838:3: "UNSET" is already defined in file "telemetry.proto".
mesh.proto:838:3: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "UNSET" must be unique within the global scope, not just within "Constants".
mesh.proto:1234:5: "ModuleConfig" is not defined.
mqtt.proto:7:1: Import "mesh.proto" was not found or had errors.
mqtt.proto:19:3: "MeshPacket" is not defined.
Generating portnums.proto...
Generating remote_hardware.proto...
Generating storeforward.proto...
Generating telemetry.proto...
Done generating the swift files from the proto files.

@caveman99
Copy link
Member

the config refresh on the device code has similar errors.

module_config.proto:90:7: "DEFAULT" is already defined in "ModuleConfig.SerialConfig".
module_config.proto:90:7: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it.  Therefore, "DEFAULT" must be unique within "ModuleConfig.SerialConfig", not just within "Serial_Mode".
mesh.proto:8:1: Import "module_config.proto" was not found or had errors.
mesh.proto:83:5: "UNSET" is already defined in "Position".
mesh.proto:83:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it.  Therefore, "UNSET" must be unique within "Position", not just within "AltSource".
mesh.proto:88:5: "MANUAL" is already defined in "Position".
mesh.proto:88:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it.  Therefore, "MANUAL" must be unique within "Position", not just within "AltSource".
mesh.proto:93:5: "GPS_INTERNAL" is already defined in "Position".
mesh.proto:93:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it.  Therefore, "GPS_INTERNAL" must be unique within "Position", not just within "AltSource".
mesh.proto:98:5: "GPS_EXTERNAL" is already defined in "Position".
mesh.proto:98:5: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it.  Therefore, "GPS_EXTERNAL" must be unique within "Position", not just within "AltSource".
mesh.proto:218:3: "UNSET" is already defined in file "telemetry.proto".
mesh.proto:218:3: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it.  Therefore, "UNSET" must be unique within the global scope, not just within "HardwareModel".
mesh.proto:838:3: "UNSET" is already defined in file "telemetry.proto".
mesh.proto:838:3: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it.  Therefore, "UNSET" must be unique within the global scope, not just within "Constants".
mesh.proto:1234:5: "ModuleConfig" is not defined.
admin.proto:10:1: Import "mesh.proto" was not found or had errors.
admin.proto:11:1: Import "module_config.proto" was not found or had errors.
admin.proto:128:5: "User" is not defined.
admin.proto:148:5: "ModuleConfig" is not defined.
admin.proto:178:5: "User" is not defined.
admin.proto:197:5: "ModuleConfig" is not defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants