Closed Bug 1915486 Opened 8 months ago Closed 8 months ago

Fix errors about 'Undefined substitution referenced' in migration code jsdocs

Categories

(Firefox :: Migration, task, P1)

task

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: standard8, Assigned: standard8)

Details

Attachments

(1 file, 2 obsolete files)

I noticed there are some errors generated when docs are run for the migration code. They're all about the same:

MigrationUtils.sys.mjs:./browser/components/migration/MigrationUtils.sys.MigrationUtils(135):484: ERROR: Undefined substitution referenced: "migrate(aCallback)".
MigrationUtils.sys.mjs:./browser/components/migration/MigrationUtils.sys.MigrationUtils(135):484: ERROR: Undefined substitution referenced: "migrate".
MigrationUtils.sys.mjs:./browser/components/migration/MigrationUtils.sys.MigrationUtils(135):491: ERROR: Undefined substitution referenced: "migrate".
MigratorBase.sys.mjs:./browser/components/migration/MigratorBase.sys.MigratorBase(48):19: ERROR: Undefined substitution referenced: "startupOnlyMigrator".
MigratorBase.sys.mjs:./browser/components/migration/MigratorBase.sys.MigratorBase(48):304: ERROR: Undefined substitution referenced: "type".
MigratorBase.sys.mjs:./browser/components/migration/MigratorBase.sys.MigratorBase(48):308: ERROR: Undefined substitution referenced: "migrate".
MigratorBase.sys.mjs:./browser/components/migration/MigratorBase.sys.MigratorBase(48):308: ERROR: Undefined substitution referenced: "migrate".
MigratorBase.sys.mjs:./browser/components/migration/MigratorBase.sys.MigratorBase(48):327: ERROR: Undefined substitution referenced: "aCallback(true, {})".
EdgeProfileMigrator.sys.mjs:./browser/components/migration/EdgeProfileMigrator.sys.EdgeProfileMigrator(496):45: ERROR: Undefined substitution referenced: "null".

These are referencing cases where the JSDoc does something like: this is a description of something which might return |null|. The JSDoc processing is recognising the pipe symbols as some kind of substitution, rather than code. We should change it to use double-backticks and then the code gets generated correctly.

Comment on attachment 9421507 [details]
Bug 1915486 - Fix 'Document may not end with a transition' errors in Android documentation. r?#android-reviewers!

Revision D220533 was moved to bug 1915550. Setting attachment 9421507 [details] to obsolete.

Attachment #9421507 - Attachment is obsolete: true

Comment on attachment 9421508 [details]
Bug 1915486 - Fix unknown target name issues in rst documents. r?sylvestre!

Revision D220534 was moved to bug 1915550. Setting attachment 9421508 [details] to obsolete.

Attachment #9421508 - Attachment is obsolete: true
Severity: -- → N/A
Priority: -- → P1
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/69f9690660a4 Fix document generation errors about 'Undefined substitution referenced' in migration component's JSDoc. r=migration-reviewers,mconley
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: