jdx/mise · error
No current versions found after resolving toolset
Error message
No current versions found after resolving toolset
What it means
In the tool stub execution path, after resolving the requested toolset, mise expects at least one current version to be present. If `toolset.list_current_versions()` returns empty, the invariant is violated and it bails. This means resolution produced no usable versions for the requested tool(s).
Solutions
- Check the requested version spec and correct it to a version the tool actually provides (`mise ls-remote <tool>`)
- Run `mise ls <tool>` to see what is installed/resolvable
- Fix the tool entry in mise.toml/.tool-versions to a valid version or `latest`
- Ensure the backend/plugin for the tool is installed and functional
Example fix
// before [tools] node = "99" // after [tools] node = "22"
Defensive patterns
Strategy: validation
Validate before calling
mise ls-remote node | grep -q "^22." || echo "requested version not available"
Prevention
- Validate version prefixes against `mise ls-remote` before pinning
- Avoid hardcoding majors that may not exist; prefer `latest` where acceptable
- Keep backend plugins updated so remote version lists resolve
- Run `mise ls` after config changes to confirm versions resolve
When it happens
Trigger: Executing a tool stub (`mise x`/shim-style execution via execute_with_tool_request) where the tool request resolves to zero versions — e.g. an unresolvable version spec or a backend returning no matching versions.
Common situations: Requesting a version prefix that matches nothing (e.g. node@99), an empty or malformed tool config, a backend that fails silently to list versions, or running a shim for a tool with no resolvable install.
Understand the failure class
Background: EmptyResultError / "no results found": when an API or scraper succeeds but returns zero rows — this error's family across 9 libraries.
Related errors
- {e}
- archive does not contain registry entries
- is a mise bin however it is not currently active. Use `mise…
- (dynamic message from…
- {e}
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/f89f944c1f6d5364.
Report an issue: GitHub.
Appendix: source
Thrown at src/cli/tool_stub.rs:547
// Inject lock data from stub into tool versions
// The toolset contains only the single tool from this stub, so apply to all versions
if let Some(lock) = &stub.lock {
for (_ba, tvl) in toolset.versions.iter_mut() {
for tv in &mut tvl.versions {
for (platform_key, lock_platform) in &lock.platforms {
let pi = PlatformInfo {
url: lock_platform.url.clone(),
checksum: lock_platform.checksum.clone(),
..Default::default()
};
tv.lock_platforms.insert(platform_key.clone(), pi);
}
}
}
}
// Ensure we have current versions after resolving
ensure!(
!toolset.list_current_versions().is_empty(),
"No current versions found after resolving toolset"
);
// Install the tool if it's missing
let install_opts = InstallOptions {
force: false,
jobs: None,
raw: false,
missing_args_only: false,
resolve_options: Default::default(),
..Default::default()
};
let (_, missing) = toolset
.install_missing_versions(config, &install_opts)
.await?;
toolset.notify_missing_versions(missing);View on GitHub (pinned to 533346cc37)