Skip to content

Support Proto Editions #32

Open
Open
@ansemjo

Description

@ansemjo

Hey! I was trying to use your generator with an existing ConnectRPC project but protoc-gen-connecpy fails because it doesn't support the editions syntax yet:

proto/v1/messages.proto: is an editions file, but code generator protoc-gen-connecpy hasn't been updated to support editions yet. Please ask the owner of this code generator to add support or switch back to proto2/proto3.

I am currently using edition = "2023"; at the top of my .proto file.

Is that possibly a simple fix to add it to the resp.SupportedFeatures value?

resp.SupportedFeatures = proto.Uint64(uint64(plugin.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions