FuelLabs/sway · error · anyhow::Error

documentation could not be built from manifest located at '{

Error message

documentation could not be built from manifest located at '{}'

What it means

Error "documentation could not be built from manifest located at '{}'" thrown in FuelLabs/sway.

Source

Thrown at forc-plugins/forc-doc/src/lib.rs:300

            bail!("--no-deps flag is not meaningful for workspaces");
        }
    } else {
        let (order, graph, manifest_map) = (
            ctx.build_plan.compilation_order(),
            ctx.build_plan.graph(),
            ctx.build_plan.manifest_map(),
        );
        let mut raw_docs = Documentation(Vec::new());

        for (node, compile_result) in order.iter().zip(compile_results) {
            let id = &graph[*node].id();
            if let Some(pkg_manifest_file) = manifest_map.get(id) {
                let manifest_file = ManifestFile::from_dir(pkg_manifest_file.path())?;
                let ty_program = compile_result
                    .as_ref()
                    .and_then(|programs| programs.typed.clone().ok())
                    .ok_or_else(|| {
                        anyhow::anyhow!(
                            "documentation could not be built from manifest located at '{}'",
                            pkg_manifest_file.path().display()
                        )
                    })?;

                // Only document libraries that are workspace members
                if matches!(ty_program.kind, TyProgramKind::Library { .. }) {
                    // Check if this package is a workspace member
                    let is_workspace_member = if ctx.is_workspace() {
                        ctx.manifest.member_manifests()?.iter().any(|(_, member)| {
                            member.project_name() == pkg_manifest_file.project_name()
                        })
                    } else {
                        true // For single packages, always include
                    };

                    if is_workspace_member {
                        let lib_info = LibraryInfo {

View on GitHub (pinned to 47e5e902fa)

When it happens

Trigger: Thrown at forc-plugins/forc-doc/src/lib.rs:300 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of FuelLabs/sway@47e5e902fa (2026-08-16). Data as JSON: /api/errors/e8de7a495092c8d5. Report an issue: GitHub.