Closed
Description
- Version: v16.0.0-pre
- Platform: Linux localhost.localdomain 5.6.13-200.fc31.x86_64 deps: update openssl to 1.0.1j #1 SMP Thu May 14 23:26:14 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
- Subsystem: build
What steps will reproduce the bug?
Using the main branch, run configure with an option and then run the target test-doc
which will fail.
How often does it reproduce? Is there a required condition?
Seems to be every time.
What is the expected behavior?
This target should pass.
What do you see instead?
$ ./configure --debug
Node.js configure: Found Python 3.8.6...
INFO: configure completed successfully
$ make test-doc
mkdir -p out/doc/api
cp -r doc/api out/doc
mkdir -p out/doc/api
cp -r doc/api out/doc
if [ -x /home/danielbevenius/work/nodejs/node/./node ] && [ -e /home/danielbevenius/work/nodejs/node/./node ]; then /home/danielbevenius/work/nodejs/node/./node tools/doc/allhtml.js; elif [ -x `command -v node` ] && [ -e `command -v node` ] && [ `command -v node` ]; then `command -v node` tools/doc/allhtml.js; else echo "No available node, cannot run \"node tools/doc/allhtml.js\""; exit 1; fi;
if [ -x /home/danielbevenius/work/nodejs/node/./node ] && [ -e /home/danielbevenius/work/nodejs/node/./node ]; then /home/danielbevenius/work/nodejs/node/./node tools/doc/alljson.js; elif [ -x `command -v node` ] && [ -e `command -v node` ] && [ `command -v node` ]; then `command -v node` tools/doc/alljson.js; else echo "No available node, cannot run \"node tools/doc/alljson.js\""; exit 1; fi;
undefined:29
"desc": "<table><thead><tr><th>API</th><th>Stability</th></tr></thead><tbody><tr><td class=\"module_stability\"><a href=\"assert.html\">assert</a></td><td class=\"api_stability api_stability_2\">(2) Stable</td></tr><tr><td class=\"module_stability\"><a href=\"async_hooks.html\">async_hooks</a></td><td class=\"api_stability api_stability_1\">(1) Experimental</td></tr><tr><td class=\"module_stability\"><a href=\"buffer.html\">buffer</a></td><td class=\"api_stability api_stability_2\">(2) Stable</td></tr><tr><td class=\"module_stability\"><a href=\"child_process.html\">child_process</a></td><td class=\"api_stability api_stability_2\">(2) Stable</td></tr><tr><td class=\"module_stability\"><a href=\"cluster.html\">cluster</a></td><td class=\"api_stability api_stability_2\">(2) Stable</td></tr><tr><td class=\"module_stability\"><a href=\"console.html\">console</a></td><td class=\"api_stability api_stability_2\">(2) Stable</td></tr><tr><td class=\"module_stability\"><a href=\"crypto.html\">crypto</a></td><td class=\"api_stability api_stability_2\">(2) Stable</td></tr><tr><td class=\"module_stability\"><a href=\"dgram.html\">dgram</a></td><td class=\"api_stability api_stability_2\">(2) Stable</td></tr><tr><td class=\"module_stability\"><a href=\"diagnostics_channel.html\">diagnostics_channel</a></td><td class=\"api_stability api_stability_1\">(1) Experimental</td></tr><tr><td class=\"module_stability\"><a href=\"dns.html\">dns</a></td><td class=\"api_stability api_stability_2\">(2) Stable</td></tr><tr><td class=\"module_stability\"><a href=\"domain.html\">domain</a></td><td class=\"api_stability api_stability_0\">(0) Deprecated</td></tr><tr><td class=\"module_stability\"><a href=\"fs.html\">fs</a></td><td class=\"api_stability api_stability_2\">(2) Stable</td></tr><tr><td class=\"module_stability\"><a href=\"http.html\">http</a></td><td class=\"api_stability api_stability_2\">(2) Stable</td></tr><tr><td class=\"module_stability\"><a href=\"http2.html\">http/2</a></td><td class=\"api_stability api_stability_2\">(2) Stable</td></tr><tr><td class=\"module_stability\"><a href=\"https.html\">https</a></td><td class=\"api_stability api_stability_2\">(2) Stable</td></tr><tr><td class=\"module_stability\"><a href=\"inspector.html\">inspector</a></td><td class=\"api_stability api_stability_1\">(1) Experimental</td></tr><tr><td class=\"module_stability\"><a href=\"modules.html\">module</a></td><td class=\"api_stability api_stability_2\">(2) Stable</td></tr><tr><td class=\"module_stability\"><a href=\"os.html\">os</a></td><td class=\"api_stability api_stability_2\">(2) Stable</td></tr><tr><td "doc/api/documentation.md",
SyntaxError: Unexpected token d in JSON at position 5352
at JSON.parse (<anonymous>)
at Object.<anonymous> (/home/danielbevenius/work/nodejs/node/tools/doc/alljson.js:39:21)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Function.Module._load (node:internal/modules/cjs/loader:828:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
at node:internal/main/run_main_module:17:47
make[1]: *** [Makefile:755: out/doc/api/all.json] Error 1
make: *** [Makefile:701: doc-only] Error 2
Additional information
Deleting out/doc
will allow the target to pass.