{"record":{"id":"e8de7a495092c8d5","repo":"FuelLabs/sway","slug":"documentation-could-not-be-built-from-manifest-loc","errorCode":null,"errorMessage":"documentation could not be built from manifest located at '{}'","messagePattern":"documentation could not be built from manifest located at '(.+?)'","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"forc-plugins/forc-doc/src/lib.rs","lineNumber":300,"sourceCode":"            bail!(\"--no-deps flag is not meaningful for workspaces\");\n        }\n    } else {\n        let (order, graph, manifest_map) = (\n            ctx.build_plan.compilation_order(),\n            ctx.build_plan.graph(),\n            ctx.build_plan.manifest_map(),\n        );\n        let mut raw_docs = Documentation(Vec::new());\n\n        for (node, compile_result) in order.iter().zip(compile_results) {\n            let id = &graph[*node].id();\n            if let Some(pkg_manifest_file) = manifest_map.get(id) {\n                let manifest_file = ManifestFile::from_dir(pkg_manifest_file.path())?;\n                let ty_program = compile_result\n                    .as_ref()\n                    .and_then(|programs| programs.typed.clone().ok())\n                    .ok_or_else(|| {\n                        anyhow::anyhow!(\n                            \"documentation could not be built from manifest located at '{}'\",\n                            pkg_manifest_file.path().display()\n                        )\n                    })?;\n\n                // Only document libraries that are workspace members\n                if matches!(ty_program.kind, TyProgramKind::Library { .. }) {\n                    // Check if this package is a workspace member\n                    let is_workspace_member = if ctx.is_workspace() {\n                        ctx.manifest.member_manifests()?.iter().any(|(_, member)| {\n                            member.project_name() == pkg_manifest_file.project_name()\n                        })\n                    } else {\n                        true // For single packages, always include\n                    };\n\n                    if is_workspace_member {\n                        let lib_info = LibraryInfo {","sourceCodeStart":282,"sourceCodeEnd":318,"githubUrl":"https://github.com/FuelLabs/sway/blob/47e5e902faa42baf652dd6a0c88cd23390c1a614/forc-plugins/forc-doc/src/lib.rs#L282-L318","documentation":"Error \"documentation could not be built from manifest located at '{}'\" thrown in FuelLabs/sway.","triggerScenarios":"Thrown at forc-plugins/forc-doc/src/lib.rs:300 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"47e5e902faa42baf652dd6a0c88cd23390c1a614","analyzedAt":"2026-08-16T07:57:45.555Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}