jsdoc
jsdoc copied to clipboard
RangeError: Value undefined out of range for undefined options property undefined
JSDoc debug output
.npm-global/lib64/node_modules/jsdoc/lib/jsdoc/util/doop.js:9
set.add(item);
RangeError: Value undefined out of range for undefined options property undefined.
Expected behavior
Attempting to apply JSDoc recursively to all files within a directory
Current behavior
Originally got "FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory" but after allocating more memory I would instead get the RangeError shown above. If I allocate 4gb of memory I get the FATAL ERROR but if I do more I get the RangeError.
Your environment
Software | Version |
---|---|
JSDoc | 3.6.7 |
Node.js | v16.13.0 |
npm | 8.1.0 |
Operating system | Gentoo |
Is it possible that there's some symbolic link to itself, and this is getting into an infinite loop?
I checked and there aren't any instances of symbolic links in the directory.
Can you please post the command line you used and something about the file structure? Like depth, or number of files?
"node --max_old_space_size=8192 /home/eric/.npm-global/bin/jsdoc --verbose -r ." was the command used.
There are 593 files with a depth of 5.
Hi, are you able to find any solution for this yet?
No, but we did find a work around. For some reason when running JSDoc on all files in the directory it would produce that error however, if you ran it on each directory individually it wouldn't error.