Hmbown/CodeWhale · error · anyhow::Error
Failed to parse permissions file {}; file contents were omit
Error message
Failed to parse permissions file {}; file contents were omitted What it means
Error "Failed to parse permissions file {}; file contents were omitted" thrown in Hmbown/CodeWhale.
Source
Thrown at crates/tui/src/config.rs:9790
}
fn load_sibling_exec_policy_engine(config_path: Option<&Path>) -> Result<ExecPolicyEngine> {
let Some(config_path) = config_path else {
return Ok(ExecPolicyEngine::new(Vec::new(), Vec::new()));
};
let permissions_path = codewhale_config::permissions_path_for_config_path(config_path);
if !permissions_path.exists() {
return Ok(ExecPolicyEngine::new(Vec::new(), Vec::new()));
}
let raw = fs::read_to_string(&permissions_path).with_context(|| {
format!(
"Failed to read permissions file: {}",
permissions_path.display()
)
})?;
let permissions: codewhale_config::PermissionsToml = toml::from_str(&raw).map_err(|_| {
anyhow::anyhow!(
"Failed to parse permissions file {}; file contents were omitted",
codewhale_config::quote_os_path(&permissions_path)
)
})?;
if permissions.is_empty() {
Ok(ExecPolicyEngine::new(Vec::new(), Vec::new()))
} else {
Ok(ExecPolicyEngine::with_rulesets(vec![permissions.ruleset()]))
}
}
fn merge_skills_config(
base: Option<SkillsConfig>,
override_cfg: Option<SkillsConfig>,
) -> Option<SkillsConfig> {
match (base, override_cfg) {
(None, None) => None,
(Some(base), None) => Some(base),View on GitHub (pinned to 8880682c63)
When it happens
Trigger: Thrown at crates/tui/src/config.rs:9790 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Parsing and encoding errors: unexpected token, malformed input — why parsers reject input and how to find the real culprit.
AI-assisted analysis of Hmbown/CodeWhale@8880682c63 (2026-08-16).
Data as JSON: /api/errors/21ec6b8e5b7d4aa7.
Report an issue: GitHub.