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

Cannot set property 'groupid' of undefined #55

Open
ricktobacco opened this issue Nov 6, 2019 · 2 comments
Open

Cannot set property 'groupid' of undefined #55

ricktobacco opened this issue Nov 6, 2019 · 2 comments

Comments

@ricktobacco
Copy link

Trying to run your moxygen --anchors --groups --output api-%s.md from README,
getting

TypeError: Cannot set property 'groupid' of undefined
at Object. (/home/ricardo/.nvm/versions/node/v8.11.4/lib/node_modules/moxygen/src/parser.js:344:34)
at Array.forEach ()
at Object. (/home/ricardo/.nvm/versions/node/v8.11.4/lib/node_modules/moxygen/src/parser.js:340:33)
at Array.forEach ()
at Object.parseCompound (/home/ricardo/.nvm/versions/node/v8.11.4/lib/node_modules/moxygen/src/parser.js:328:30)
at Object. (/home/ricardo/.nvm/versions/node/v8.11.4/lib/node_modules/moxygen/src/parser.js:445:16)
at Array.forEach ()
at Object. (/home/ricardo/.nvm/versions/node/v8.11.4/lib/node_modules/moxygen/src/parser.js:443:14)
at Object. (/home/ricardo/.nvm/versions/node/v8.11.4/lib/node_modules/moxygen/src/parser.js:474:9)
at Parser. (/home/ricardo/.nvm/versions/node/v8.11.4/lib/node_modules/moxygen/node_modules/xml2js/lib/parser.js:306:18)

@barakman
Copy link

barakman commented Nov 17, 2019

To elaborate on this, in file parser.js / line 400:

var member = this.references[memberdef.$.id];

Object this.references has no key memberdef.$.id.
Subsequently, variable member is set to undefined.
Subsequently, the expression member.groupid throws an exception (stated at the title of this issue).

@brycelelbach
Copy link

This seems to happen when you have a non-member function that is documented.

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

3 participants