jdx/mise · error
relative remote mise path does not name an executable
Error message
relative remote mise path does not name an executable: {command:?} What it means
After stripping `..`/`.` components, a relative remote mise path must still name something — at least one real path component — so it can be joined to the staged project directory. This error means the path normalized to nothing (e.g. `.`, `./`, or only dot segments), leaving no executable to reference.
Solutions
- Set the relative path to a real binary location inside the project, e.g. `bin/mise`
- Use `~/.local/bin/mise` or an absolute path if the binary lives outside the project
- Leave the remote mise path unset to use auto-discovery of mise on the host
Example fix
// before remote_mise = "." // after remote_mise = "bin/mise"
Defensive patterns
Strategy: validation
Validate before calling
// require at least one real component after normalization
fn names_executable(p: &str) -> bool {
p.split('/').any(|c| !c.is_empty() && c != "." && c != "..")
} Prevention
- Never configure `.` or bare separators as the remote mise path
- Verify templated config values interpolate to a real binary path
- Leave the setting unset to use mise auto-discovery instead
When it happens
Trigger: Normalizing a relative remote mise path whose components list is empty after filtering (e.g. `.` or `./.`); raised just before joining the path with the staged project directory.
Common situations: Placeholder config value left as `.`; a templated path where the variable portion was empty; typo leaving only separators and dot segments.
Understand the failure class
Background: "Must be a positive integer", "Invalid value", "Unsupported": the invalid-argument-value error family, when a library rejects the value you pass — this error's family across 35 libraries.
Related errors
- remote mise path does not name an executable
- a provided source resolves to a path
- agent ' ' `queue_directories` entry ' ' must be an absolute…
- an implied source entry key must be relative
- bootstrap compose project
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/b12f696598231486.
Report an issue: GitHub.
Appendix: source
Thrown at src/system/remote.rs:1261
}
let home = remote_home.ok_or_else(|| eyre!("remote login home was not resolved"))?;
return Ok(format!("{}/{suffix}", home.trim_end_matches('/')));
}
let mut components = Vec::new();
for component in command.split('/') {
match component {
"" | "." => {}
".." => {
if components.pop().is_none() {
bail!("relative remote mise path escapes the staged project: {command:?}");
}
}
component => components.push(component),
}
}
if components.is_empty() {
bail!("relative remote mise path does not name an executable: {command:?}");
}
Ok(format!("{project}/{}", components.join("/")))
}
fn remote_mise_find_script() -> &'static str {
r#"mise_path=$(command -v mise 2>/dev/null || true)
case "$mise_path" in /*) ;; *) mise_path= ;; esac
if [ -z "$mise_path" ]; then
for candidate in "$HOME/.local/bin/mise" "$HOME/.local/share/mise/bin/mise" "$HOME/.cargo/bin/mise" /usr/local/bin/mise /opt/homebrew/bin/mise; do
if [ -x "$candidate" ]; then
mise_path=$candidate
break
fi
done
fi"#
}
fn remote_mise_output_script() -> String {View on GitHub (pinned to 533346cc37)