{"record":{"id":"06dba78bcee2fe8e","repo":"jdx/mise","slug":"ruby-engine-is-not-supported-on-windows-only","errorCode":null,"errorMessage":"Ruby engine '{}' is not supported on Windows.\nOnly standard MRI Ruby versions can be installed via RubyInstaller2.","messagePattern":"Ruby engine '(.+?)' is not supported on Windows\\.\nOnly standard MRI Ruby versions can be installed via RubyInstaller2\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/plugins/core/ruby_windows.rs","lineNumber":229,"sourceCode":"                body.trim()\n                    .trim_start_matches(\"ruby-\")\n                    .trim_start_matches('v')\n                    .to_string()\n            }\n        };\n        if v.is_empty() {\n            return Ok(vec![]);\n        }\n        Ok(vec![v])\n    }\n\n    async fn install_version_(\n        &self,\n        ctx: &InstallContext,\n        mut tv: ToolVersion,\n    ) -> eyre::Result<ToolVersion> {\n        if !super::ruby_common::is_mri_version(&tv.version) {\n            bail!(\n                \"Ruby engine '{}' is not supported on Windows.\\n\\\n                 Only standard MRI Ruby versions can be installed via RubyInstaller2.\",\n                tv.version\n            );\n        }\n        let tarball = self.download(&tv, ctx.pr.as_ref()).await?;\n        self.verify_checksum(ctx, &mut tv, &tarball)?;\n        self.install(ctx, &tv, &tarball).await?;\n        self.verify(ctx, &tv).await?;\n        self.install_rubygems_hook(&tv)?;\n        self.test_gem(&ctx.config, &tv, ctx.pr.as_ref()).await?;\n        if let Err(err) = self\n            .install_default_gems(&ctx.config, &tv, ctx.pr.as_ref())\n            .await\n        {\n            warn!(\"failed to install default ruby gems {err:#}\");\n        }\n        Ok(tv)","sourceCodeStart":211,"sourceCodeEnd":247,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/plugins/core/ruby_windows.rs#L211-L247","documentation":"mise's Windows Ruby core plugin only supports standard MRI (CRuby) versions, which are installed via RubyInstaller2. When the requested tool version parses as a non-MRI engine (e.g. jruby, truffleruby, rbx variants), install_version_ aborts before downloading anything, since RubyInstaller2 cannot provide those engines on Windows.","triggerScenarios":"Running `mise install ruby@<version>` (or having it in a tool-versions/mise.toml) on Windows where is_mri_version() returns false for the version string — e.g. 'jruby-9.4.0.0', 'truffleruby+graalvm-22.3.1', or an unusual version literal that fails the MRI check.","commonSituations":"A repo config (.tool-versions or mise.toml) written on macOS/Linux with a non-MRI Ruby engine is used on Windows; a developer copies a team config that pins jruby; typos or nonstandard version strings that don't parse as MRI.","solutions":["Install a standard MRI Ruby version on Windows (e.g. `mise use ruby@3.3.0`), which is supported via RubyInstaller2","Remove the non-MRI engine (jruby/truffleruby) from your mise config on Windows machines, or scope it per-environment","If you genuinely need JRuby/TruffleRuby on Windows, use WSL and install it there instead of native Windows"],"exampleFix":"// before (mise.toml on Windows)\n[tools]\nruby = \"jruby-9.4.5.0\"\n// after\n[tools]\nruby = \"3.3.0\"","handlingStrategy":"validation","validationCode":"const MRI_RE = /^\\d+\\.\\d+\\.\\d+(-\\w+)?$/;\nif (!MRI_RE.test(rubyVersion)) throw new Error(`Refusing to install non-MRI ruby ${rubyVersion} on Windows`);","typeGuard":"function isMriVersion(v) { return /^\\d+(\\.\\d+)*$/.test(v) || /^\\d+\\.\\d+\\.\\d+/.test(v); }","tryCatchPattern":null,"preventionTips":["Pin standard MRI versions (x.y.z) in mise.toml on Windows","Separate Windows-specific tool configs from Unix configs if your team uses non-MRI engines","Test cross-platform configs on Windows before committing them"],"tags":["windows","ruby","unsupported-engine","core-plugin"],"backgroundTag":"unsupported-platform","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"}