{"record":{"id":"fd7267108c5bac0a","repo":"jdx/mise","slug":"cli-feature-is-not-enabled","errorCode":null,"errorMessage":"cli feature is not enabled","messagePattern":"cli feature is not enabled","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/vfox/src/bin.rs","lineNumber":24,"sourceCode":"extern crate log;\n\n#[cfg(feature = \"cli\")]\nmod cli;\n\n#[cfg(feature = \"cli\")]\n#[tokio::main]\nasync fn main() -> std::process::ExitCode {\n    env_logger::init_from_env(env_logger::Env::default().filter_or(\"VFOX_LOG\", \"info\"));\n    if let Err(err) = cli::run().await {\n        error!(\"{err}\");\n        return std::process::ExitCode::FAILURE;\n    }\n    std::process::ExitCode::SUCCESS\n}\n\n#[cfg(not(feature = \"cli\"))]\nfn main() {\n    panic!(\"cli feature is not enabled\");\n}\n","sourceCodeStart":6,"sourceCodeEnd":26,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/crates/vfox/src/bin.rs#L6-L26","documentation":"When the requested task isn't found, mise checks whether the current directory contains untrusted config files that might define tasks; if so it raises this error instead of a plain not-found, because mise refuses to execute tasks from untrusted configuration. Trust must be granted explicitly with `mise trust`.","triggerScenarios":"`mise run <task>` in a directory where a config file (mise.toml, .mise.toml, etc.) exists but is not trusted, and no task with the given name resolves; err_no_task detects untrusted configs via config_trust_root/is_trusted.","commonSituations":"Cloning a fresh repository (configs untrusted by default); after mise upgrades that reset trust; running in CI on a freshly checked-out workspace without trusting configs first.","solutions":["Run `mise trust` (or `mise trust <path>`) to trust the config files, then retry.","In CI, run `mise trust` once after checkout before running tasks.","Verify you are in the intended project directory — the untrusted files may be unexpected."],"exampleFix":"// before\nmise run build   # fails: configs not trusted\n\n// after\nmise trust && mise run build","handlingStrategy":"validation","validationCode":"# Check for untrusted configs before running tasks\nmise trust --dry-run 2>/dev/null || mise trust","typeGuard":null,"tryCatchPattern":"// On 'not trusted' errors, trust and retry once\nif (err.message.includes('not trusted')) {\n  execSync('mise trust');\n  return runTask(name);\n}","preventionTips":["Run `mise trust` immediately after cloning any repository.","Add `mise trust` as the first CI step after checkout.","Review config contents before trusting files from unknown sources."],"tags":["tasks","trust","security","configuration"],"backgroundTag":"permission-denied","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}