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
VladimirGrenaderov opened this Issue Jan 10, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@VladimirGrenaderov

VladimirGrenaderov 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)

@dcodeIO dcodeIO closed this in acc9633 Jan 11, 2017

dcodeIO added a commit that referenced this issue Jan 11, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment