jdx/mise · error
user service ' ' must set a non-empty `command
Error message
user service '{name}' must set a non-empty `command` What it means
Validation in user service TOML parsing (from_toml_with_executable, src/system/user_services.rs). This fires when a service's `command` field is present but resolves to an empty string (e.g. `command = ""`), or when a configured executable lookup yields nothing to quote into the command line. An empty command cannot produce a valid service definition, so parsing is rejected rather than emitting a broken service unit.
Solutions
- Set a real program path in `command`
- Check for a quoting mistake that produced an empty string
- Use `builtin` if the command should come from mise
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/system/user_services.rs:131 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/1186100ffc6a96ad.
Report an issue: GitHub.
Appendix: source
Thrown at src/system/user_services.rs:131
Some(exe) => Some(
std::iter::once(quote_program(&exe.to_string_lossy()))
.chain(definition.args.iter().map(|arg| arg.to_string()))
.collect::<Vec<_>>()
.join(" "),
),
None => {
unresolved = Some(
"no durable mise executable; install mise on this host first"
.to_string(),
);
None
}
}
}
(None, Some(command)) => {
let command = command.trim();
if command.is_empty() {
bail!("user service '{name}' must set a non-empty `command`");
}
Some(command.to_string())
}
};
Ok(Self {
name,
description,
command,
unresolved,
builtin: config.builtin,
restart: restart.unwrap_or_default(),
nice,
environment: config.environment,
working_directory: config.working_directory,
requires_tools: config.requires_tools,
state: config.state,
enabled: config.enabled,
origin,View on GitHub (pinned to 533346cc37)