Skip to content

Please make it work with protobuf editions #541

@EugenDueck

Description

@EugenDueck

I have a file like

edition = "2023";
...

When running protoc-gen-doc like so:

docker run --rm \
  -v $(pwd)/:/out \
  -v $(pwd)/proto:/protos \
  pseudomuto/protoc-gen-doc --doc_opt=markdown,proto-docs.md

It defaults to proto2, leading to many subsequent errors:

[libprotobuf WARNING google/protobuf/compiler/parser.cc:649] No syntax specified for the proto file: echo.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)

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