Skip to main content
For the release status of each capability, see Capabilities and progress.This page lists every extension diagnostic code in three groups, “Package and validation”, “Preview”, and “Runtime”, with what each means and how to fix it. The last section lists the notices users may see in the UI. For how to read diagnostics and troubleshoot by symptom, see Test and troubleshoot.

Diagnostic shape

A diagnostic from validation is:
Runtime diagnostics in inspect.runtime.diagnostics are { at, code, message, fix?, slot?, key? }. They have no source location and no level. slot and key identify the site, and at is the time (Unix ms). In tests, site.diagnostics entries are { code, message, fix?, plugin? }.The fix loop: make the change in fix, then run the same action again (test, preview, and so on).
EXTENSION_PACKAGE_SKIPPED, EXTENSION_SHADOWING, COMMAND_RETIRED, COMMAND_ANSWER_INVALID, and COMMAND_TEXT_TRUNCATED are warnings and don’t block preview or the current action. Every other diagnostic code blocks the current action.

Package and validation

Returned by init, test, and preview, and also shown in inspect.source.diagnostics. Static checks find all of these before any extension code runs.

Preview

Returned by preview and withdraw.

Runtime

Shown in inspect.runtime.diagnostics and in site.diagnostics in tests, or thrown as the error code of a ctx call.

Other codes you may see

These codes aren’t in the diagnostic code list in the type declarations. The host or the test utilities report them. Every code that appears in a diagnostic carries a fix. COMMAND_BUSY, COMMAND_UNKNOWN, and COMMAND_ARGS_TOO_LONG never appear in diagnostics. They show up only as error codes from runCommand in tests and as UI notices. In diagnostics, COMMAND_BUSY is recorded as GESTURE_QUEUE_FULL.

Notices in the UI

Users may see the text below in the UI. These aren’t diagnostic codes, but they help you tell what happened.

Pause notice

When an extension is paused, the status band or panel shows a notice:When a site has several plugins, the notice shows only when every layer is paused.

Other notices

Command notices

After the user runs a plugin command, the UI shows the result in a toast. Replace todo below with the actual command name:When the command answers normally, the toast shows the text that command.run returned.

SVG the window rejects

After a screen reaches the window, the window checks it again and replaces any part it can’t draw with a placeholder. The reason goes in reason in inspect.runtime.sites (see runtime.sites). Two of these relate to <Svg>: invalid-svg is checked on every site, and unsafe-svg only on the backdrop.detail names the exact prop or content.

Next steps

Test and troubleshoot

Find the cause by symptom.

Extensions reference

Quick reference for events, ctx methods, elements, and limits.