Closed Bug 1592964 Opened 6 years ago Closed 6 years ago

jsdoc: add minimal version

Categories

(Developer Infrastructure :: Source Documentation, task)

task
Not set
normal

Tracking

(firefox72 fixed)

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

Details

Attachments

(2 files)

In Debian and Ubuntu, jsdoc is version 2.4 (pretty old).
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739506 for more information about that.

However, as the error message is cryptic:

Creating file /home/sylvestre/dev/mozilla/mozilla-inbound.hg/obj-x86_64-pc-linux-gnu/docs/html/_staging/python/marionette_driver.rst.
WARNING: The config value `js_source_path' has type `list', defaults to `str'.

Sphinx error:
jsdoc found no JS files in the directories [u'/home/sylvestre/dev/mozilla/mozilla-inbound.hg/browser/components/extensions', u'/home/sylvestre/dev/mozilla/mozilla-inbound.hg/testing/marionette', u'/home/sylvestre/dev/mozilla/mozilla-inbound.hg/toolkit/components/extensions', u'/home/sylvestre/dev/mozilla/mozilla-inbound.hg/toolkit/components/extensions/parent', u'/home/sylvestre/dev/mozilla/mozilla-inbound.hg/toolkit/components/featuregates', u'/home/sylvestre/dev/mozilla/mozilla-inbound.hg/toolkit/mozapps/extensions']. Make sure js_source_path is set correctly in conf.py. It is also possible (though unlikely) that jsdoc emitted invalid JSON.
./mach: failed to generate documentation:
/home/sylvestre/dev/mozilla/mozilla-inbound.hg/tools: sphinx return code 2

We should give more information in case of error (at least the version)

Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d60821c527f2 Detail the minimal version of jsdoc expected r=ahal
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72

Due to bug 1556460 we actually fail with jsdoc>=3.6.0. Until we figure out why, let's do a version check and update our message.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7dbfb4cac809 = [docs] Error out if we detect anything but jsdoc==3.5, r=sylvestre
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Depends on: 1607035
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: