jdx/mise · error
cannot upgrade because no configured tools were resolved
Error message
cannot upgrade {} because no configured tools were resolved What it means
During `mise lock --upgrade`, mise must re-resolve every tool configured in the lockfile to write fresh pins. If the lockfile lists no tools at all (or none could be resolved from the configured sources), there is nothing to upgrade from, so the command aborts instead of silently producing an empty upgrade.
Solutions
- Regenerate the lockfile instead of upgrading: run `mise lock` (without --upgrade) to populate it first
- Verify tools are declared in mise.toml / .tool-versions (`mise ls` should list them)
- Check for typos in tool names and that the lockfile corresponds to the current project config
Example fix
// before mise lock --upgrade # on an empty mise.lock // after mise lock # generate first mise lock --upgrade # then upgrade
Defensive patterns
Strategy: validation
Validate before calling
// bash: only upgrade when the lockfile has tools [[ $(grep -c 'tool' mise.lock) -gt 0 ]] && mise lock --upgrade || mise lock
Prevention
- Generate a lockfile with `mise lock` before attempting `--upgrade`
- Keep mise.toml tool declarations in sync with the lockfile
When it happens
Trigger: `mise lock --upgrade` against a lockfile whose `lockfile.tools()` is empty after resolution — e.g. an empty/new lockfile, or configured tool selectors that matched nothing.
Common situations: Running `--upgrade` on a freshly initialized or wiped mise.lock; tool requirements removed from mise.toml so nothing resolves; typo'd tool names in config.
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
- cannot upgrade because not every request binding was…
- additional_artifacts must be an array in lockfile
- aube lockfile mapping keys must be strings
- aube lockfile must contain a mapping
- brew-cask: refusing to remove generic artifact outside
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/89eb8547a76165b7.
Report an issue: GitHub.
Appendix: source
Thrown at src/cli/lock.rs:585
} else {
Lockfile::read(&lockfile_path)?
};
if self.json {
all_changes.extend(self.compute_version_changes(
&lockfile,
&tools,
&lockfile_path,
));
}
let pruned_tools = self.prune_stale_entries_if_needed(
&mut lockfile,
configured_selectors.as_ref(),
);
let format_changed = if self.upgrade {
if lockfile.tools().is_empty() {
self.prepare_lockfile_format(&lockfile_path, &mut lockfile)
} else {
bail!(
"cannot upgrade {} because no configured tools were resolved",
display_path(&lockfile_path)
);
}
} else {
self.report_lockfile_format(&lockfile_path, &lockfile, false)?;
false
};
if format_changed || !pruned_tools.is_empty() {
if atomic {
staged_upgrade_writes.push(StagedUpgradeWrite {
path: lockfile_path.clone(),
original_content,
lockfile,
summary: None,
format_changed,
stale_tools: pruned_tools.clone(),
stale_versions: BTreeMap::new(),View on GitHub (pinned to 533346cc37)