jdx/mise · error
command wrapper names cannot contain dots on Windows
Error message
command wrapper names cannot contain dots on Windows: {name:?} What it means
On Windows builds, validate_wrapper_name additionally rejects wrapper names containing a dot, because shim naming/extension handling on Windows treats the dot as the exe-suffix boundary and a dotted name would collide or resolve wrong.
Solutions
- Replace dots with dashes in the wrapper name on Windows
- Keep dotted wrapper names only for non-Windows configs
- Wrap the config entry per-OS if both forms are needed
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/shims.rs:1150 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/b7063d0cd8cec3d1.
Report an issue: GitHub.
Appendix: source
Thrown at src/shims.rs:1150
pub(crate) fn command_name_without_exe_suffix(bin_name: &str) -> &str {
let suffix = std::env::consts::EXE_SUFFIX;
if suffix.is_empty() {
return bin_name;
}
let suffix_start = bin_name.len().saturating_sub(suffix.len());
match (bin_name.get(..suffix_start), bin_name.get(suffix_start..)) {
(Some(name), Some(actual_suffix)) if actual_suffix.eq_ignore_ascii_case(suffix) => name,
_ => bin_name,
}
}
fn validate_wrapper_name(name: &str) -> Result<()> {
if name.is_empty() || name == "." || name == ".." || name.contains('/') || name.contains('\\') {
bail!("invalid command wrapper name: {name:?}");
}
if cfg!(windows) && name.contains('.') {
bail!("command wrapper names cannot contain dots on Windows: {name:?}");
}
Ok(())
}
fn validate_wrapper_names<'a>(names: impl IntoIterator<Item = &'a String>) -> Result<()> {
let mut normalized = HashSet::new();
for name in names {
validate_wrapper_name(name)?;
if cfg!(macos) && !normalized.insert(name.to_lowercase()) {
bail!("command wrapper names collide on macOS after case normalization: {name:?}");
}
}
Ok(())
}
/// Resolve the mise executable that Unix symlink shims should target.
///
/// Snap exposes applications through `/snap/bin`, where each command is a symlink to theView on GitHub (pinned to 533346cc37)