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

Moxygen Error - "TypeError: Cannot read property 'match' of undefined" #36

Open
alexander-edward-ptr opened this issue Oct 1, 2018 · 0 comments

Comments

@alexander-edward-ptr
Copy link

alexander-edward-ptr commented Oct 1, 2018

Hey guys, am I doing something wrong?

Moxygen works fine with my ObjectiveC codebase's doxygen output, but not for my Android (Java)

I can remove some of the files and change the error, but I have too many files - it would be better just to be told the error so that I can fix it.

Any help/debugging instructions would be super 👍

last verbose statement: (pretty standard output up until here)

verbose: Processing member function [static initializer]

the stacktrace:

events.js:167
      throw er; // Unhandled 'error' event
      ^

TypeError: Cannot read property 'match' of undefined
    at Object.parseMember (/usr/local/lib/node_modules/moxygen/src/parser.js:230:48)
    at Object.<anonymous> (/usr/local/lib/node_modules/moxygen/src/parser.js:358:22)
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/usr/local/lib/node_modules/moxygen/src/parser.js:347:33)
    at Array.forEach (<anonymous>)
    at Object.parseCompound (/usr/local/lib/node_modules/moxygen/src/parser.js:335:30)
    at Object.<anonymous> (/usr/local/lib/node_modules/moxygen/src/parser.js:445:18)
    at Parser.<anonymous> (/usr/local/lib/node_modules/moxygen/node_modules/xml2js/lib/parser.js:303:18)
    at Parser.emit (events.js:182:13)
    at SAXParser.onclosetag (/usr/local/lib/node_modules/moxygen/node_modules/xml2js/lib/parser.js:261:26)
Emitted 'error' event at:
    at Parser.exports.Parser.Parser.parseString (/usr/local/lib/node_modules/moxygen/node_modules/xml2js/lib/parser.js:326:16)
    at Parser.parseString (/usr/local/lib/node_modules/moxygen/node_modules/xml2js/lib/parser.js:5:59)
    at Object.<anonymous> (/usr/local/lib/node_modules/moxygen/src/parser.js:460:17)
    at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
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