dox icon indicating copy to clipboard operation
dox copied to clipboard

Parsing fails with no indication of which file is broken

Open dimageller opened this issue 5 years ago • 2 comments

I had a function with JSDoc, where I forgot to specify type of object for input parameter, like below /** Some function @param {} timeout */

While generating a document, parser failed, but it didn't indicate where

node_modules/jsdoctypeparser/lib/index.js:48 throw new Lexer.SyntaxError(e.message, typeExp, e.offset); ^ TypeLexerSyntaxError: Expected "!", "(", "*", "...", "=", "?", "function", "module", "{" or [a-zA-Z_$] but " " found.:

dimageller avatar Oct 25 '19 16:10 dimageller

@tj I am also facing same. Is this package still maintained?

ShivamJoker avatar Aug 02 '22 08:08 ShivamJoker

@ShivamJoker TJ has not been the active maintainer for a long long time. The 0.x version is not extensively being maintained, largely because I haven't had the motivation to update it for the changes in jsdoctypeparser, and no one else has submitted a PR.

I am working on a complete rewrite of the project in my spare time, which will eventually become 1.0, but I don't know how long that will take.

Twipped avatar Aug 04 '22 00:08 Twipped