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

TypeError: parent.setOption is not a function #655

Closed
robin-anil opened this issue Jan 21, 2017 · 2 comments
Closed

TypeError: parent.setOption is not a function #655

robin-anil opened this issue Jan 21, 2017 · 2 comments
Labels

Comments

@robin-anil
Copy link
Contributor

protobuf.js version: 6.5.3, Does not happen in 6.5.0

/Users/robinanil/work/core/node_modules/protobufjs/cli/pbjs.js:168
            throw err;
            ^

TypeError: parent.setOption is not a function
    at parseOptionValue (/Users/robinanil/work/core/node_modules/protobufjs/src/parse.js:511:20)
    at parseOption (/Users/robinanil/work/core/node_modules/protobufjs/src/parse.js:493:9)
    at parseInlineOptions (/Users/robinanil/work/core/node_modules/protobufjs/src/parse.js:518:17)
    at parseEnumValue (/Users/robinanil/work/core/node_modules/protobufjs/src/parse.js:470:9)
    at parseEnum (/Users/robinanil/work/core/node_modules/protobufjs/src/parse.js:451:21)
    at parseCommon (/Users/robinanil/work/core/node_modules/protobufjs/src/parse.js:248:17)
    at parseType (/Users/robinanil/work/core/node_modules/protobufjs/src/parse.js:272:21)
    at parseCommon (/Users/robinanil/work/core/node_modules/protobufjs/src/parse.js:244:17)
    at parse (/Users/robinanil/work/core/node_modules/protobufjs/src/parse.js:676:21)
    at process (/Users/robinanil/work/core/node_modules/protobufjs/src/root.js:115:30)
@dcodeIO
Copy link
Member

dcodeIO commented Jan 21, 2017

For reference, caused by inline enum value options:

enum MyEnum {
   ONE = 1 [foo="bar"];
}

@dcodeIO
Copy link
Member

dcodeIO commented Jan 24, 2017

Closing this for now because it should be fixed in master. Once there is a release, feel free to reopen if there are still any issues.

@dcodeIO dcodeIO closed this as completed Jan 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants