nikivdev/code · error

missing exec.run in {}

Error message

missing exec.run in {}

What it means

Error "missing exec.run in {}" thrown in nikivdev/code.

Source

Thrown at src/external_cli.rs:546

        );
    }
    Ok(record)
}

fn read_manifest(path: &Path) -> Result<ExternalCliManifest> {
    let content =
        fs::read_to_string(path).with_context(|| format!("failed to read {}", path.display()))?;
    let manifest: ExternalCliManifest =
        toml::from_str(&content).with_context(|| format!("failed to parse {}", path.display()))?;
    if manifest.version != 1 {
        bail!(
            "unsupported external CLI manifest version {} in {}",
            manifest.version,
            path.display()
        );
    }
    if manifest.exec.run.is_empty() {
        bail!("missing exec.run in {}", path.display());
    }
    Ok(manifest)
}

#[cfg(test)]
mod tests {
    use super::*;

    fn write_tool(root: &Path, id: &str) -> PathBuf {
        let tool_root = root.join(id);
        fs::create_dir_all(&tool_root).expect("create tool root");
        fs::write(
            tool_root.join(MANIFEST_NAME),
            format!(
                r#"
version = 1
id = "{id}"
language = "go"

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/external_cli.rs:546 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01). Data as JSON: /api/errors/958dba51693666bd. Report an issue: GitHub.