Closed
Bug 1458396
Opened 7 years ago
Closed 7 years ago
Docs doesn't build; maximum call stack size exceeded
Categories
(Taskcluster :: Services, defect)
Taskcluster
Services
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dustin, Assigned: bstack)
Details
(v9.8.0) dustin@lamport ~/p/taskcluster-docs [master] $ gulp
[23:58:35] Using gulpfile ~/p/taskcluster-docs/gulpfile.js
[23:58:35] Starting 'build-static'...
[23:58:36] WARNING: $MOZILLIANS_API_KEY is not set; not generating mozillians links
(node:22418) UnhandledPromiseRejectionWarning: RangeError: layout/schema.pug:120
118| li
119| code.short.schema-pattern= val
> 120| td.normaltext !{marked(schema.description || '')}
121|
122| mixin combination(schema, name, subs, sort)
123| tr.frow
Maximum call stack size exceeded
Please report this to https://github.com/chjj/marked.
at String.replace (<anonymous>)
at Lexer.lex (/home/dustin/p/taskcluster-docs/node_modules/marked/lib/marked.js:144:6)
at Function.Lexer.lex (/home/dustin/p/taskcluster-docs/node_modules/marked/lib/marked.js:135:16)
at marked (/home/dustin/p/taskcluster-docs/node_modules/marked/lib/marked.js:1317:31)
at Object.pug_interp [as normalrow] (eval at wrap (/home/dustin/p/taskcluster-docs/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:458:46)
at Object.pug_interp [as schemarow] (eval at wrap (/home/dustin/p/taskcluster-docs/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:563:24)
at Object.eval (eval at wrap (/home/dustin/p/taskcluster-docs/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:630:24)
at Object.pug_interp [as schemarow] (eval at wrap (/home/dustin/p/taskcluster-docs/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:634:4)
at Object.eval (eval at wrap (/home/dustin/p/taskcluster-docs/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:500:24)
at Object.pug_interp [as combination] (eval at wrap (/home/dustin/p/taskcluster-docs/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:549:4)
at Object.pug_interp [as schemarow] (eval at wrap (/home/dustin/p/taskcluster-docs/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:664:26)
at Object.pug_interp [as schemarow] (eval at wrap (/home/dustin/p/taskcluster-docs/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:572:24)
at Object.eval (eval at wrap (/home/dustin/p/taskcluster-docs/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:630:24)
at Object.pug_interp [as schemarow] (eval at wrap (/home/dustin/p/taskcluster-docs/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:634:4)
at Object.eval (eval at wrap (/home/dustin/p/taskcluster-docs/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:500:24)
at Object.pug_interp [as combination] (eval at wrap (/home/dustin/p/taskcluster-docs/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:549:4)
(node:22418) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:22418) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[23:58:45] generating table of contents for /reference
Oddly, this doesn't exit with a nonzero status. Gotta love gulp.
Brian, any idea what's up here?
Flags: needinfo?(bstack)
Assignee | ||
Comment 1•7 years ago
|
||
Haha, I think I see what is happening. I added a console.log right before the line where this errors to see what it is failing on and it is just hundreds of lines of
```
The most basic element of a scope expression
AnyOf objects will evaluate to true if any subexpressions are true
```
I think we have an infinite loop on our hands! I'll see if I can fix it.
Assignee: nobody → bstack
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•7 years ago
|
||
Indeed [0] is an infinite loop. As I understood it, json-schema-ref-parser was supposed to eliminate infinite loops somehow, but it has been a while since I looked last.
[0] https://github.com/taskcluster/taskcluster-lib-api/blob/master/src/schemas/api-reference.json
Flags: needinfo?(bstack)
Assignee | ||
Comment 3•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: Documentation → Services
You need to log in
before you can comment on or make changes to this bug.
Description
•