Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Cannot convert proto #158

Open
jack-burridge-cfh opened this issue Jul 1, 2023 · 3 comments
Open

Cannot convert proto #158

jack-burridge-cfh opened this issue Jul 1, 2023 · 3 comments
Assignees
Labels
awaiting_feedback Waiting for the reporter to respond

Comments

@jack-burridge-cfh
Copy link

I'm trying to convert this proto file but I get the error:

INFO[0000] Generating JSON-schema for MESSAGE            jsonschema_filename=StringAttribute.schema.json msg_name=StringAttribute proto_filename=collectionset.proto
INFO[0000] Generating JSON-schema for MESSAGE            jsonschema_filename=NumericAttribute.schema.json msg_name=NumericAttribute proto_filename=collectionset.proto
INFO[0000] Generating JSON-schema for MESSAGE            jsonschema_filename=NodeLevelResource.schema.json msg_name=NodeLevelResource proto_filename=collectionset.proto
ERRO[0000] Failed to convert                             error="no such message type named .NodeLevelResource" proto_filename=collectionset.proto
WARN[0000] Failed to process code generator but successfully sent the error to protoc 
--jsonschema_out: protoc-gen-jsonschema: Plugin failed with status code 1.
protoc --version
libprotoc 23.3
@chrusty
Copy link
Owner

chrusty commented Aug 6, 2023

Hi @jack-burridge-cfh, this is a strange one. I'm guessing it's related to that file not specifying a package name, which makes tracking messages difficult. Is that a file you control?

@chrusty chrusty self-assigned this Aug 6, 2023
@chrusty chrusty added the awaiting_feedback Waiting for the reporter to respond label Aug 6, 2023
@jack-burridge-cfh
Copy link
Author

@chrusty sadly it is not

@yngvesl
Copy link

yngvesl commented Dec 8, 2023

I can confirm I got this error when I hadn't specified a package name. It worked when I specified one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
awaiting_feedback Waiting for the reporter to respond
Projects
None yet
Development

No branches or pull requests

3 participants