zed-industries/zed · error

Failed to read tasks file at {path}

Error message

Failed to read tasks file at {path}

What it means

While validating an extension's language directory, reading the tasks file (tasks.json) from disk failed. This is an I/O error wrapper: the file path exists in the directory listing but std::fs::read returned an error such as permission denied or a broken symlink; {path} names the offending file.

Source

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

            description.trim().chars().count() > manifest.name.trim().chars().count()
        });
    if !description_is_longer_than_name {
        return Err(ExtensionManifestValidationError::DescriptionNotLongerThanName);
    }

    if manifest
        .authors
        .iter()
        .all(|author| author.trim().is_empty())
    {
        return Err(ExtensionManifestValidationError::MissingAuthors);
    }

    let repository = manifest
        .repository
        .as_ref()
        .map(|repository| repository.trim())
        .filter(|repository| !repository.is_empty())
        .ok_or(ExtensionManifestValidationError::MissingRepository)?;

    let repository_url = repository
        .parse::<Url>()
        .map_err(|_| ExtensionManifestValidationError::InvalidRepository(repository.to_string()))?;

    if repository_url.host_str().is_none() {
        return Err(ExtensionManifestValidationError::InvalidRepository(
            repository.to_string(),
        ));
    };

    if !manifest.language_model_providers.is_empty() {
        return Err(ExtensionManifestValidationError::LanguageModelProvidersUnsupported);
    }

    Ok(())
}

View on GitHub (pinned to 9d272b0363)

Solutions

  1. Check the file exists, is readable, and is not a broken symlink at the reported path
  2. Fix permissions on the tasks file and re-run validation
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at crates/extension_cli/src/main.rs:472 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/77386cbb14660c70. Report an issue: GitHub.