better-docs icon indicating copy to clipboard operation
better-docs copied to clipboard

jsdoc failing to run: "File doesn't exist there"

Open HappyCerberus opened this issue 4 years ago • 3 comments

I had to add -d=docs to the command, since jsdoc would not run without it, but I'm still getting an error when I run jsdoc -c jsdoc.json -d=docs:

java -Djsdoc.template.dir=/usr/share/jsdoc-toolkit/templates/jsdoc -jar /usr/share/java/jsrun.jar /usr/share/jsdoc-toolkit/app/run.js -c jsdoc.json -d=docs
js: "/usr/share/jsdoc-toolkit/app/run.js", line 191: exception from uncaught JavaScript throw: File doesn't exist there: true

I'm really unsure what file is missing where. This is my jsdoc.json

HappyCerberus avatar Oct 04 '20 13:10 HappyCerberus

try to install jsdoc localy and run it from there (write corresponding script in package.json). ithink the error happens because better docs are installed locally where jsdoc globally

wojtek-krysiak avatar Oct 05 '20 03:10 wojtek-krysiak

OK, managed to get through the first hurdle. I was missing "include": ["src"], in the source section. I'm getting output now, but it seems to be empty.

HappyCerberus avatar Oct 05 '20 09:10 HappyCerberus

do you have any jsdoc comments? PS - in better-docs repo there is a jsdoc.json script which I use for testing. You can try if that works fro you

wojtek-krysiak avatar Oct 06 '20 04:10 wojtek-krysiak