{"record":{"id":"4f7d6f6eb725c220","repo":"zellij-org/zellij","slug":"swap-layout-not-found-for","errorCode":null,"errorMessage":"Swap Layout not found for: {}","messagePattern":"Swap Layout not found for: (.+?)","errorType":"exception","errorClass":"std::io::Error","httpStatus":null,"severity":"error","filePath":"zellij-utils/src/setup.rs","lineNumber":202,"sourceCode":"                    let content = fs::read_to_string(path)?;\n                    std::io::stdout().write_all(content.as_bytes())\n                },\n                _ => {\n                    log::error!(\"No layout named {custom} found\");\n                    return Ok(());\n                },\n            }\n        },\n    }\n}\n\npub fn dump_specified_swap_layout(swap_layout: &str) -> std::io::Result<()> {\n    match swap_layout {\n        \"strider\" => dump_asset(STRIDER_SWAP_LAYOUT),\n        \"default\" => dump_asset(DEFAULT_SWAP_LAYOUT),\n        \"compact\" => dump_asset(COMPACT_BAR_SWAP_LAYOUT),\n        \"classic\" => dump_asset(CLASSIC_SWAP_LAYOUT),\n        not_found => Err(std::io::Error::new(\n            std::io::ErrorKind::Other,\n            format!(\"Swap Layout not found for: {}\", not_found),\n        )),\n    }\n}\n\n#[cfg(not(target_family = \"wasm\"))]\npub fn dump_builtin_plugins(path: &PathBuf) -> Result<()> {\n    for (asset_path, bytes) in ASSET_MAP.iter() {\n        let plugin_path = path.join(asset_path);\n        plugin_path\n            .parent()\n            .with_context(|| {\n                format!(\n                    \"failed to acquire parent path of '{}'\",\n                    plugin_path.display()\n                )\n            })","sourceCodeStart":184,"sourceCodeEnd":220,"githubUrl":"https://github.com/zellij-org/zellij/blob/bf8d23a4f774abf27a108da2a1a2689e7d8d0d23/zellij-utils/src/setup.rs#L184-L220","documentation":"Error \"Swap Layout not found for: {}\" thrown in zellij-org/zellij.","triggerScenarios":"Occurs at zellij-utils/src/setup.rs:202 when the operation fails: \"Swap Layout not found for: {}\". Currently there is no defensive handling preventing or contextualizing this failure before it surfaces.","commonSituations":"Typo in layout name or missing layout file in the layout directory.","solutions":["Check the layout name/file path spelling; run `zellij setup --check` to list known layouts.","Create the layout file or pass --layout with a valid name."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bf8d23a4f774abf27a108da2a1a2689e7d8d0d23","analyzedAt":"2026-08-19T07:42:58.758Z","contentChangedAt":"2026-08-19T07:42:58.758Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}