jdx/mise · error

no tasks defined in {}, but found {} non-executable file(s)

Error message

no tasks defined in {}, but found {} non-executable file(s) in {}.
Files must be executable to be detected as tasks.
Run `chmod +x` on the task files to fix this, e.g.:
  chmod +x {}

What it means

Error "no tasks defined in {}, but found {} non-executable file(s) in {}. Files must be executable to be detected as tasks. Run `chmod +x` on the task files to fix this, e.g.: chmod +x {}" thrown in jdx/mise.

Source

Thrown at src/task/task_list.rs:320

        }

        if let Some(task) = make_task_executable(config, name, task_context).await? {
            return Ok(Some(task));
        }

        // Check if there are non-executable files in task include directories
        if !cfg!(windows)
            && let Some(cwd) = &*dirs::CWD
        {
            let includes = config::task_includes_for_dir(cwd, &config.config_files)?;
            let non_exec_files = find_non_executable_task_files(&includes);
            if !non_exec_files.is_empty() {
                let dirs_with_files: Vec<String> = includes
                    .iter()
                    .filter(|d| d.is_dir())
                    .map(display_path)
                    .collect();
                bail!(
                    "no tasks defined in {}, but found {} non-executable file(s) in {}.\n\
                        Files must be executable to be detected as tasks.\n\
                        Run `chmod +x` on the task files to fix this, e.g.:\n  chmod +x {}",
                    display_path(dirs::CWD.clone().unwrap_or_default()),
                    non_exec_files.len(),
                    dirs_with_files.join(", "),
                    non_exec_files
                        .iter()
                        .take(5)
                        .map(display_path)
                        .collect::<Vec<_>>()
                        .join(" "),
                );
            }
        }

        bail!(
            "no tasks defined in {}. Are you in a project directory?",

View on GitHub (pinned to 6f52dcdf99)

Solutions

  1. Run `chmod +x` on the listed task file(s); file tasks must be executable to be detected.

When it happens

Trigger: Thrown at src/task/task_list.rs:320 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of jdx/mise@6f52dcdf99 (2026-08-22). Data as JSON: /api/errors/a4c0dfa3d95e733d. Report an issue: GitHub.