{"record":{"id":"9398eaa60ba85268","repo":"astrid-runtime/astrid","slug":"cargo-include-array-contains-a-non-string-or-non-t","errorCode":null,"errorMessage":"Cargo include array contains a non-string or non-table value in {}","messagePattern":"Cargo include array contains a non-string or non-table value in (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/astrid-build/src/rust/config.rs","lineNumber":247,"sourceCode":"                        .and_then(toml_edit::Value::as_str)\n                        .ok_or_else(|| {\n                            anyhow::anyhow!(\n                                \"Cargo include table must contain a string path in {}\",\n                                path.display()\n                            )\n                        })?;\n                    let optional = match table.get(\"optional\") {\n                        None => false,\n                        Some(value) => value.as_bool().ok_or_else(|| {\n                            anyhow::anyhow!(\n                                \"Cargo include optional must be a boolean in {}\",\n                                path.display()\n                            )\n                        })?,\n                    };\n                    Ok(resolve_cargo_config_include(path, include, optional)?)\n                } else {\n                    bail!(\n                        \"Cargo include array contains a non-string or non-table value in {}\",\n                        path.display()\n                    )\n                }\n            })\n            .collect();\n    }\n    if let Some(table) = item.as_table_like() {\n        let include = table\n            .get(\"path\")\n            .and_then(toml_edit::Item::as_str)\n            .ok_or_else(|| {\n                anyhow::anyhow!(\n                    \"Cargo include table must contain a string path in {}\",\n                    path.display()\n                )\n            })?;\n        let optional = match table.get(\"optional\") {","sourceCodeStart":229,"sourceCodeEnd":265,"githubUrl":"https://github.com/astrid-runtime/astrid/blob/affd8760f44190dbdfbec23403f4c4b642c33112/crates/astrid-build/src/rust/config.rs#L229-L265","documentation":"Schema validation in cargo_config_includes: an element of a Cargo include array is neither a plain string nor an inline table (the two accepted forms). Only strings and {path=...,optional=...} tables are supported include specifications; anything else (integers, arrays of arrays) makes the include list uninterpretable and load_content aborts.","triggerScenarios":"Thrown at crates/astrid-build/src/rust/config.rs:247 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use strings for include paths, or tables with a `path` key","Remove malformed entries from the include array","Validate the TOML structure of the config file"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"affd8760f44190dbdfbec23403f4c4b642c33112","analyzedAt":"2026-09-09T21:28:12.402Z","contentChangedAt":"2026-09-09T21:28:12.402Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}