jdx/mise · error
` ` is not executable.
Error message
`{dp}` is not executable. {} What it means
Before running a task whose command is a script file, validate_task checks the file is executable. On Windows, mise cannot offer to chmod the file (make_executable is a no-op there), so instead of prompting it immediately fails and tells the user how to fix permissions themselves.
Solutions
- Set the executable bit in git: `git update-index --chmod=+x path/to/script` and commit
- Fix the file mode on a Unix checkout before syncing to Windows
- Configure git: `git config core.fileMode true` so mode changes propagate
Example fix
// before (Unix dev machine, mode lost on Windows checkout) -rw-r--r-- scripts/build.sh // after git update-index --chmod=+x scripts/build.sh && git commit -m "chore: mark build.sh executable"
Defensive patterns
Strategy: validation
Validate before calling
[ -x "$SCRIPT" ] || git update-index --chmod=+x "$SCRIPT"
Prevention
- Commit scripts with the executable bit via git update-index --chmod=+x
- Enable core.fileMode in git configs for the repo
- Ensure zip/transfer processes preserve file modes
When it happens
Trigger: Running `mise run <task>` on Windows where the task's script file lacks the executable bit / is not runnable, and mise would otherwise have offered to make it executable.
Common situations: Scripts committed to git without the executable bit (common when developing on Windows or after zips/copies that drop the mode); checking out repos on filesystems that don't preserve modes.
Understand the failure class
Background: Permission denied / not authorized / 403 Forbidden: access-control rejections when the caller lacks the required role, grant, or ownership — this error's family across 18 libraries.
Related errors
- . Creating directory symlinks on Windows may require…
- failed to parse registry option
- GitHub relay request denied or unavailable
- relay unavailable
- brew-cask prune is not supported on windows
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/652b2cfdcf414f86.
Report an issue: GitHub.
Appendix: source
Thrown at src/cli/run.rs:1473
"2026.8.14",
"2027.8.14",
"task.rust_cache",
"`rust_cache` no longer enables Rust action caching in mise; remove it and run Cargo through mbx instead: https://mr-boxington.jdx.dev/getting-started"
);
}
if !task.pass_through_env.is_empty() {
Settings::get().ensure_experimental("task environment pass-through")?;
}
if let Some(path) = &task.file
&& path.exists()
&& !file::is_executable(path)
{
let dp = crate::file::display_path(path);
// Only offer the fix where accepting it can change the answer. `make_executable` is a
// no-op on Windows, so the prompt would take a "yes" and then fail anyway; the same
// reasoning already keeps `make_task_executable` from running there.
if cfg!(windows) {
bail!(
"`{dp}` is not executable. {}",
file::make_executable_hint(path)
)
}
let msg = format!("Script `{dp}` is not executable. Make it executable?");
if ui::confirm(msg)?.is_yes() {
file::make_executable(path)?;
} else {
bail!(
"`{dp}` is not executable. {}",
file::make_executable_hint(path)
)
}
}
Ok(())
}
fn timings(&self) -> bool {View on GitHub (pinned to 533346cc37)