zed-industries/zed · error · anyhow::Error
Debug adapter schema for `{debug_adapter_name}`(path: `{debu
Error message
Debug adapter schema for `{debug_adapter_name}`(path: `{debug_adapter_schema_path:?}`) is not a valid JSON What it means
The debug adapter schema file for {debug_adapter_name} was loaded but is not valid JSON — serde_json failed to parse its contents. Distinguish from the read error: the file exists and is readable, but its content cannot be parsed as a JSON schema; the adapter cannot be registered without a parseable schema.
Source
Thrown at crates/extension_cli/src/main.rs:625
}
}
}
}
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."#,
theme_name = theme.name
)
}
}
}
View on GitHub (pinned to 9d272b0363)
Solutions
- Fix the JSON syntax error in the schema file (check for trailing commas, unescaped quotes, BOM)
- Lint the file with a JSON validator before repackaging the extension
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/extension_cli/src/main.rs:593 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/2e31c16afcbfff40.
Report an issue: GitHub.