Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message with name 'Group' causes an error #638

Closed
koshic opened this issue Jan 10, 2017 · 0 comments
Closed

Message with name 'Group' causes an error #638

koshic opened this issue Jan 10, 2017 · 0 comments

Comments

@koshic
Copy link

koshic commented Jan 10, 2017

protobuf.js version: <6.4.5>

load or loadSync causes an error with .proto like this:

message Group {
    required int32 group_id = 1;
    required string name = 2;
    optional string icon_url = 3;
}

message InterestsGroups {
    repeated Group groups = 1;
}

Error similar to #568, so it seems that 'Group' treated as 'group':

Error: illegal token ';', '{' expected (line 12)
    at illegal (/Users/kosh/work/projects/badoo/_deploy/webpack/node_modules/protobufjs/src/tokenize.js:58:16)
    at skip (/Users/kosh/work/projects/badoo/_deploy/webpack/node_modules/protobufjs/src/tokenize.js:192:19)
    at parseGroup (/Users/kosh/work/projects/badoo/_deploy/webpack/node_modules/protobufjs/src/parse.js:335:9)
    at parseField (/Users/kosh/work/projects/badoo/_deploy/webpack/node_modules/protobufjs/src/parse.js:304:13)
    at parseType (/Users/kosh/work/projects/badoo/_deploy/webpack/node_modules/protobufjs/src/parse.js:272:25)
    at parseCommon (/Users/kosh/work/projects/badoo/_deploy/webpack/node_modules/protobufjs/src/parse.js:235:17)
    at parse (/Users/kosh/work/projects/badoo/_deploy/webpack/node_modules/protobufjs/src/parse.js:644:21)
    at process (/Users/kosh/work/projects/badoo/_deploy/webpack/node_modules/protobufjs/src/root.js:113:30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant