You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to protobuf language specification option value in form of MessageLiteralWithBraces = l_brace MessageTexFormat r_brace can have MessageLiteralFieldName represented as l_bracket SpecialFieldName r_bracket (see Protobuf Text Format in spec).
/home/.nvm/versions/node/v20.11.0/lib/node_modules/protobufjs-cli/pbjs.js:254
throw err;
^
Error: illegal name '[' (option-values.proto, line 10)
at illegal (/home/.nvm/versions/node/v20.11.0/lib/node_modules/protobufjs-cli/node_modules/protobufjs/src/parse.js:96:16)
at parseOptionValue (/home/.nvm/versions/node/v20.11.0/lib/node_modules/protobufjs-cli/node_modules/protobufjs/src/parse.js:639:27)
at parseOption (/home/.nvm/versions/node/v20.11.0/lib/node_modules/protobufjs-cli/node_modules/protobufjs/src/parse.js:627:27)
at parse (/home/.nvm/versions/node/v20.11.0/lib/node_modules/protobufjs-cli/node_modules/protobufjs/src/parse.js:852:17)
at process (/home/.nvm/versions/node/v20.11.0/lib/node_modules/protobufjs-cli/node_modules/protobufjs/src/root.js:127:30)
at fetch (/home/.nvm/versions/node/v20.11.0/lib/node_modules/protobufjs-cli/node_modules/protobufjs/src/root.js:179:13)
at Root.load (/home/.nvm/versions/node/v20.11.0/lib/node_modules/protobufjs-cli/node_modules/protobufjs/src/root.js:207:13)
at Root.loadSync (/home/.nvm/versions/node/v20.11.0/lib/node_modules/protobufjs-cli/node_modules/protobufjs/src/root.js:248:17)
at Object.main (/home/.nvm/versions/node/v20.11.0/lib/node_modules/protobufjs-cli/pbjs.js:245:18)
at Object.<anonymous> (/home/.nvm/versions/node/v20.11.0/lib/node_modules/protobufjs-cli/bin/pbjs:4:16)
Node.js v20.11.0
The text was updated successfully, but these errors were encountered:
protobuf.js version: 7.3.2
According to protobuf language specification option value in form of
MessageLiteralWithBraces = l_brace MessageTexFormat r_brace
can haveMessageLiteralFieldName
represented asl_bracket SpecialFieldName r_bracket
(see Protobuf Text Format in spec).Now https://github.com/protobufjs/protobuf.js/blob/master/src/parse.js#L638 checks only for the
FieldName
which equals to identifier but not forSpecialFieldName
.Valid proto (from Scalapb docs)
The text was updated successfully, but these errors were encountered: