{"record":{"id":"94373b66b46ed314","repo":"jdx/mise","slug":"monorepo-task-paths-like-path-task-or-task","errorCode":null,"errorMessage":"Monorepo task paths (like `//path:task` or `:task`) require a monorepo root configuration.\n\nTo set up monorepo support, add this to your root mise.toml:\n{}\n\nThen create task files in subdirectories that will be automatically discovered.\nSee {} for more information.","messagePattern":"Monorepo task paths \\(like `//path:task` or `:task`\\) require a monorepo root configuration\\.\n\nTo set up monorepo support, add this to your root mise\\.toml:\n(.+?)\n\nThen create task files in subdirectories that will be automatically discovered\\.\nSee (.+?) for more information\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/task/task_list.rs","lineNumber":65,"sourceCode":"                .map(|e| e.path().to_path_buf())\n        })\n        .collect()\n}\n\n/// Split a task spec into name and args\n/// e.g., \"task arg1 arg2\" -> (\"task\", vec![\"arg1\", \"arg2\"])\npub(crate) fn split_task_spec(spec: &str) -> (&str, Vec<String>) {\n    let mut parts = spec.split_whitespace();\n    let name = parts.next().unwrap_or(\"\");\n    let args = parts.map(|s| s.to_string()).collect_vec();\n    (name, args)\n}\n\n/// Validate that monorepo features are properly configured\nfn validate_monorepo_setup(config: &Arc<Config>) -> Result<()> {\n    // Check if a monorepo root is configured\n    if !config.is_monorepo() {\n        bail!(\n            \"Monorepo task paths (like `//path:task` or `:task`) require a monorepo root configuration.\\n\\\n            \\n\\\n            To set up monorepo support, add this to your root mise.toml:\\n\\\n            {}\\n\\\n            \\n\\\n            Then create task files in subdirectories that will be automatically discovered.\\n\\\n            See {} for more information.\",\n            style::eyellow(\"  monorepo_root = true\"),\n            style::eunderline(\n                \"https://mise.jdx.dev/tasks/task-configuration.html#monorepo-support\"\n            )\n        );\n    }\n\n    Ok(())\n}\n\n/// Check if a name is similar to any known CLI subcommands using fuzzy matching","sourceCodeStart":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/task/task_list.rs#L47-L83","documentation":"Error \"Monorepo task paths (like `//path:task` or `:task`) require a monorepo root configuration.\n\nTo set up monorepo support, add this to your root mise.toml:\n{}\n\nThen create task files in subdirectories that will be automatically discovered.\nSee {} for more information.\" thrown in jdx/mise.","triggerScenarios":"Thrown at src/task/task_list.rs:65 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add a root mise.toml with `[monorepo] monorepo_root = true` and config_roots globs","Move task files into subdirectories covered by your config_roots patterns","See the linked monorepo documentation URL in the error for the exact TOML to paste"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"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"}