zed-industries/zed · error

has output

Error message

has output

What it means

Panics in handle_postprocessing when the mdbook RenderContext config has no `output` section. The zed-html backend requires mdbook to be configured with an output table; its absence means the book's book.toml is misconfigured for this renderer.

Source

Thrown at crates/docs_preprocessor/src/main.rs:689

            eprintln!(
                "Warning: actions.json not found, action validation will be skipped: {}",
                err
            );
            ActionManifest {
                actions: Vec::new(),
                schema_definitions: serde_json::Map::new(),
            }
        }
    }
}

fn handle_postprocessing() -> Result<()> {
    let logger = zlog::scoped!("render");
    let mut ctx = mdbook::renderer::RenderContext::from_json(io::stdin())?;
    let output = ctx
        .config
        .get_mut("output")
        .expect("has output")
        .as_table_mut()
        .expect("output is table");
    let zed_html = output.remove("zed-html").expect("zed-html output defined");
    let redirects = zed_html
        .get("redirect")
        .and_then(|redirects| redirects.as_table())
        .map(|redirects| {
            redirects
                .iter()
                .filter_map(|(source, destination)| {
                    destination
                        .as_str()
                        .map(|destination| (source.clone(), destination.to_string()))
                })
                .collect::<Vec<_>>()
        });
    let default_description = zed_html
        .get("default-description")

View on GitHub (pinned to f4178619ac)

Solutions

  1. Add an `[output.zed-html]` section to book.toml
  2. Verify mdbook is invoking this renderer with a complete RenderContext
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/docs_preprocessor/src/main.rs:689 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20). Data as JSON: /api/errors/c3766ad5cbad2b32. Report an issue: GitHub.