jsdoc-to-markdown icon indicating copy to clipboard operation
jsdoc-to-markdown copied to clipboard

Add line numbers to JSDOC_ERRORs

Open gitjeff05 opened this issue 7 years ago • 4 comments

Any time I get an error generating the markdown, it's usually something like this:

$ jsdoc2md file.js > file.md
JSDOC_ERROR: ERROR: Unable to parse file.js: Unexpected token {

Is there a way to produce a more verbose output? Line numbers would really help out a lot.

gitjeff05 avatar Apr 02 '17 12:04 gitjeff05

Unfortunately, that's as much information as we receive from the underlying jsdoc app. If jsdoc returned the full error stack jsdoc2md would print it.

Follow the upstream issue here.

75lb avatar Apr 02 '17 12:04 75lb

The upstream issue has landed. They now return line numbers.

reconbot avatar Jul 05 '17 04:07 reconbot

true, the fix has landed on master.. Once @hegemonic has finished the new release (3.5.0) i'll pull it into jsdoc2md.

75lb avatar Jul 05 '17 08:07 75lb

Bump

Elyx0 avatar Jun 19 '18 22:06 Elyx0