protobuf.Text icon indicating copy to clipboard operation
protobuf.Text copied to clipboard

It is not possible to read comments except when they are at the start.

Open kruno-exponent opened this issue 3 years ago • 1 comments

Hi,

It's not possible to add comments anywhere except at the start. Steps to reproduce:

  • open https://github.com/SciSharp/protobuf.Text/blob/master/test/Test/Config/faster_rcnn_resnet101_voc07.config
  • Append # This is some comment
  • Run tests inside of this repository
  • Error Protobuf.Text.InvalidTextProtocolBufferException : Unknown field: #

kruno-exponent avatar Oct 15 '22 08:10 kruno-exponent

Confirmed that this is still an issue.

According to the specification, the # character should treat anything following it (until the newline character) as a comment and should be ignored.

https://protobuf.dev/reference/protobuf/textformat-spec/#whitespace

Comments can appear on their own line, or at the end of a line with other elements on it.

efalsken avatar Dec 13 '24 03:12 efalsken