{"record":{"id":"f89f944c1f6d5364","repo":"jdx/mise","slug":"no-current-versions-found-after-resolving-toolset","errorCode":null,"errorMessage":"No current versions found after resolving toolset","messagePattern":"No current versions found after resolving toolset","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cli/tool_stub.rs","lineNumber":547,"sourceCode":"    // Inject lock data from stub into tool versions\n    // The toolset contains only the single tool from this stub, so apply to all versions\n    if let Some(lock) = &stub.lock {\n        for (_ba, tvl) in toolset.versions.iter_mut() {\n            for tv in &mut tvl.versions {\n                for (platform_key, lock_platform) in &lock.platforms {\n                    let pi = PlatformInfo {\n                        url: lock_platform.url.clone(),\n                        checksum: lock_platform.checksum.clone(),\n                        ..Default::default()\n                    };\n                    tv.lock_platforms.insert(platform_key.clone(), pi);\n                }\n            }\n        }\n    }\n\n    // Ensure we have current versions after resolving\n    ensure!(\n        !toolset.list_current_versions().is_empty(),\n        \"No current versions found after resolving toolset\"\n    );\n\n    // Install the tool if it's missing\n    let install_opts = InstallOptions {\n        force: false,\n        jobs: None,\n        raw: false,\n        missing_args_only: false,\n        resolve_options: Default::default(),\n        ..Default::default()\n    };\n\n    let (_, missing) = toolset\n        .install_missing_versions(config, &install_opts)\n        .await?;\n    toolset.notify_missing_versions(missing);","sourceCodeStart":529,"sourceCodeEnd":565,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/cli/tool_stub.rs#L529-L565","documentation":"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).","triggerScenarios":"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.","commonSituations":"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.","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"],"exampleFix":"// before\n[tools]\nnode = \"99\"\n// after\n[tools]\nnode = \"22\"","handlingStrategy":"validation","validationCode":"mise ls-remote node | grep -q \"^22.\" || echo \"requested version not available\"","typeGuard":null,"tryCatchPattern":null,"preventionTips":["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"],"tags":["toolset","version-resolution","shim","empty-result"],"backgroundTag":"empty-result-set","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}