{"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/afd2eddd3a50c16190efc1c7e94404b48f72af57/src/cli/tool_stub.rs#L529-L565","documentation":"Invariant failure during tool stub execution (execute_with_tool_request): after resolving and building the toolset, no current versions remain (the toolset's version list is empty), so there is nothing to execute. Fires when resolution filters out all versions (e.g. bad lock data, platform mismatch) yet the code path expects at least one.","triggerScenarios":"Thrown at src/cli/tool_stub.rs:547 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the stub's lock data and the requested version against the tool's installed versions","Re-resolve the toolset to see why versions were filtered out","Reinstall the tool or fix lockfile platform entries, then retry the stub"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"afd2eddd3a50c16190efc1c7e94404b48f72af57","analyzedAt":"2026-09-09T01:38:25.179Z","contentChangedAt":"2026-09-09T01:38:25.179Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}