{"record":{"id":"cec557238553ce53","repo":"jdx/mise","slug":"no-task-found","errorCode":null,"errorMessage":"no task {} found","messagePattern":"no task (.+?) found","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/task/task_list.rs","lineNumber":366,"sourceCode":"\n    let similar = similar_tasks(name, &tasks_for_error);\n    if !similar.is_empty() {\n        err_msg.push_str(\"\\n\\nDid you mean one of these?\");\n        for task_name in similar {\n            err_msg.push_str(&format!(\"\\n  - {}\", task_name));\n        }\n    }\n\n    if !similar_cmds.is_empty() {\n        err_msg.push_str(\"\\n\\nDid you mean the command:\");\n        for cmd_name in &similar_cmds {\n            err_msg.push_str(&format!(\"\\n  mise {cmd_name}\"));\n        }\n    }\n\n    append_available_tasks(&mut err_msg, &tasks_for_error, showing_all_tasks);\n\n    bail!(err_msg);\n}\n\n/// Prompt the user to select a task interactively\nasync fn prompt_for_task(config: &Arc<Config>, load_all: bool) -> Result<Task> {\n    let ctx = load_all.then(TaskLoadContext::all);\n    let tasks = config.tasks_with_context(ctx.as_ref()).await?;\n    ensure!(\n        !tasks.is_empty(),\n        \"no tasks defined. see {url}\",\n        url = style::eunderline(\"https://mise.jdx.dev/tasks/\")\n    );\n    let theme = crate::ui::theme::get_theme();\n    let mut s = Select::new(\"Tasks\")\n        .description(\"Select a task to run\")\n        .filtering(true)\n        .filterable(true)\n        .theme(&theme);\n    for t in tasks.values().filter(|t| !t.hide) {","sourceCodeStart":348,"sourceCodeEnd":384,"githubUrl":"https://github.com/jdx/mise/blob/6f52dcdf99e282ef7a7db68c81301fa4618d0f79/src/task/task_list.rs#L348-L384","documentation":"Error \"no task {} found\" thrown in jdx/mise.","triggerScenarios":"Thrown at src/task/task_list.rs:366 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["List available tasks with `mise tasks ls` and use one of the printed names.","If the task lives in a monorepo subdirectory, reference it as `//path:task`."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6f52dcdf99e282ef7a7db68c81301fa4618d0f79","analyzedAt":"2026-08-22T10:14:23.840Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}