{"record":{"id":"ac6f466e71feb70b","repo":"DioxusLabs/dioxus","slug":"failed-to-parse-dioxus-toml-at-path-err","errorCode":null,"errorMessage":"Failed to parse Dioxus.toml at {path:?}: {err}","messagePattern":"Failed to parse Dioxus\\.toml at (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/cli/src/workspace.rs","lineNumber":473,"sourceCode":"\n            // Try to find Dioxus.toml in the current directory\n            if let Some(new_config) = config {\n                dioxus_conf_file = Some(new_config.as_path().to_path_buf());\n                break;\n            }\n            // If we can't find it, go up a directory\n            current_dir = current_dir\n                .parent()\n                .context(\"Failed to find Dioxus.toml\")?\n                .to_path_buf();\n        }\n\n        // Load base config from Dioxus.toml (if it exists)\n        let base_config: Option<DioxusConfig> = match &dioxus_conf_file {\n            Some(path) => {\n                let content = std::fs::read_to_string(path)?;\n                Some(toml::from_str(&content).map_err(|err| {\n                    anyhow::anyhow!(\"Failed to parse Dioxus.toml at {path:?}: {err}\")\n                })?)\n            }\n            None => None,\n        };\n\n        // Extract inline config from source file (if provided)\n        let inline_config = source_file.and_then(crate::config::extract_inline_config_from_file);\n\n        // Merge configs: inline overrides base\n        match (base_config, inline_config) {\n            (Some(base), Some(inline)) => crate::config::merge_with_inline_config(&base, inline)\n                .map(Some)\n                .map_err(|err| anyhow::anyhow!(\"Failed to merge inline config: {err}\")),\n            (Some(base), None) => Ok(Some(base)),\n            (None, Some(inline)) => {\n                // No Dioxus.toml, but we have inline config - use defaults + inline\n                let base = DioxusConfig::default();\n                crate::config::merge_with_inline_config(&base, inline)","sourceCodeStart":455,"sourceCodeEnd":491,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/workspace.rs#L455-L491","documentation":"Raised in load_dioxus_config when toml::from_str fails on the contents of the discovered Dioxus.toml at the given path. The file exists but is syntactically invalid TOML or has fields that do not deserialize into DioxusConfig; the underlying toml error with position is embedded as {err}.","triggerScenarios":"Thrown at packages/cli/src/workspace.rs:473 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Dioxus.toml could not be parsed. Fix the TOML error at the reported path."],"exampleFix":null,"handlingStrategy":"validation","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-14T05:17:10.506Z"}