zed-industries/zed · error · anyhow::Error

failed to read debug adapter schema for `{debug_adapter_name

Error message

failed to read debug adapter schema for `{debug_adapter_name}` from `{debug_adapter_schema_path:?}`

What it means

While testing an extension's debug adapters, loading the adapter's JSON schema file failed at the FS layer. The schema path is derived from the manifest's debug_adapters entry; the load failed because the file is missing, unreadable, or a broken symlink at {debug_adapter_schema_path}.

Source

Thrown at crates/extension_cli/src/main.rs:619

                    } else if file_name.ends_with(".scm") {
                        bail!("query {file_name} is not supported by Zed and should be removed")
                    } else if !context.is_known_resource(&file_path) {
                        bail!(
                            "'{file_name}' is not a supported file in a language directory and should be removed"
                        )
                    }
                }
            }
        }

        log::info!("loaded language {}", config.name);
    }

    Ok(())
}

async fn test_themes(
    manifest: &ExtensionManifest,
    extension_path: &Path,
    fs: Arc<dyn Fs>,
) -> Result<()> {
    for relative_theme_path in &manifest.themes {
        let theme_path = extension_path.join(relative_theme_path);
        let theme_family =
            theme_settings::deserialize_user_theme(&fs.load_bytes(&theme_path).await?)?;
        log::info!("loaded theme family {}", theme_family.name);

        for theme in &theme_family.themes {
            if theme
                .style
                .colors
                .deprecated_scrollbar_thumb_background
                .is_some()
            {
                bail!(
                    r#"Theme "{theme_name}" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead."#,

View on GitHub (pinned to 9d272b0363)

Solutions

  1. Ensure the schema file exists at the path derived from the manifest entry (typically debug_adapters/<name>.json)
  2. Fix the path declared in extension.toml's [debug_adapters] section to point at the actual schema file
Defensive patterns

Strategy: try-catch

When it happens

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

Common situations: See trigger scenarios.


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