{"record":{"id":"f4ab178837c33f0f","repo":"DioxusLabs/dioxus","slug":"e","errorCode":null,"errorMessage":"{e}","messagePattern":"\\{e\\}","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/cli/src/workspace.rs","lineNumber":86,"sourceCode":"            eprintln!(\"{GLOW_STYLE}warning{GLOW_STYLE:#}: Waiting for cargo-metadata...\");\n            tokio::time::sleep(Duration::from_millis(2000)).await;\n            for x in 1..=100 {\n                tokio::time::sleep(Duration::from_millis(2000)).await;\n                eprintln!(\"{GLOW_STYLE}warning{GLOW_STYLE:#}: (Try {x}) Taking a while...\");\n\n                if x % 10 == 0 {\n                    eprintln!(\n                        \"{GLOW_STYLE}warning{GLOW_STYLE:#}: maybe check your network connection or build lock?\"\n                    );\n                }\n            }\n        };\n\n        let krates = tokio::select! {\n            f = krates_future => {\n                let res = f?;\n                if let Err(krates::Error::Metadata(e)) = res {\n                    bail!(\"{e}\");\n                }\n                res?\n            },\n            _ = spin_future => bail!(\"cargo metadata took too long to respond, try again with --offline\"),\n        };\n\n        let settings = CliSettings::global_or_default();\n        let sysroot = Self::get_rustc_sysroot()\n            .await\n            .context(\"Failed to get rustc sysroot\")?;\n        let rustc_version = Self::get_rustc_version()\n            .await\n            .context(\"Failed to get rustc version\")?;\n\n        let wasm_opt = which::which(\"wasm-opt\").ok();\n\n        let ignore = Self::workspace_gitignore(krates.workspace_root().as_std_path());\n","sourceCodeStart":68,"sourceCodeEnd":104,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/workspace.rs#L68-L104","documentation":"Propagation point in Workspace::current: when the `cargo metadata` subprocess returns krates::Error::Metadata, its display text is bailed out verbatim as {e}. Fires when cargo metadata itself fails — broken Cargo.toml, network fetch errors, or a held build lock — after the 2-second-per-try warning loop has already run.","triggerScenarios":"Thrown at packages/cli/src/workspace.rs:86 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["cargo metadata returned the embedded error. Read it and fix the workspace or manifest problem it describes."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}