jdx/mise · error
remote mise path does not name an executable
Error message
remote mise path does not name an executable: {command:?} What it means
mise normalizes the configured remote mise path to an absolute executable path. Absolute paths pass through; `~/`-prefixed paths are expanded against the resolved remote home. This error fires when the command is exactly `~/` (or `~` with empty suffix), leaving no executable name to expand.
Solutions
- Set the full path including the binary name, e.g. `~/bin/mise` or `~/.local/bin/mise`
- Use an absolute path like `/home/user/.local/bin/mise` if home-relative expansion is not needed
- Omit the custom path entirely to let mise auto-discover or install the remote binary
Example fix
// before in host config remote_mise = "~/" // after remote_mise = "~/.local/bin/mise"
Defensive patterns
Strategy: validation
Validate before calling
// reject ~/ with no executable suffix before calling
fn valid_remote_mise_path(p: &str) -> bool {
if let Some(suffix) = p.strip_prefix("~/") {
return !suffix.is_empty();
}
!p.trim().is_empty()
} Prevention
- Always include the binary name in the configured path
- Interpolate config templates fully; never leave trailing separators
- Prefer absolute paths for remote mise binaries
When it happens
Trigger: Configuring the remote mise path as `~/` (empty after the tilde-slash prefix) in RemoteHost options; resolution runs during remote mise path normalization before provisioning.
Common situations: A config template left the version/tool segment empty (e.g. `{{mise_dir}}/` interpolated to `~/`); a typo truncating the path in mise.toml or CLI flags.
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
- relative 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/4b3de8fcaf3f4490.
Report an issue: GitHub.
Appendix: source
Thrown at src/system/remote.rs:1242
esac"#,
shell_quote(command),
shell_quote(command),
);
let output = session.output_async(&["sh", "-lc", &script]).await?;
validated_absolute_remote_path_output(&output, "remote login executable")
}
fn resolve_remote_mise_path(
command: &str,
project: &str,
remote_home: Option<&str>,
) -> Result<String> {
if command.starts_with('/') {
return Ok(command.to_string());
}
if let Some(suffix) = command.strip_prefix("~/") {
if suffix.is_empty() {
bail!("remote mise path does not name an executable: {command:?}");
}
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() {View on GitHub (pinned to 533346cc37)