{"record":{"id":"8bb848a0d604ea92","repo":"jdx/mise","slug":"what-is-experimental-enable-it-with-mise-setti","errorCode":null,"errorMessage":"{what} is experimental. Enable it with `mise settings experimental=true`","messagePattern":"(.+?) is experimental\\. Enable it with `mise settings experimental=true`","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/config/settings.rs","lineNumber":1557,"sourceCode":"\n    /// Returns configured lockfile platforms parsed into Platform structs, or None for defaults.\n    /// Errors on invalid platform strings (same validation as `mise lock --platform`).\n    pub(crate) fn lockfile_platforms(&self) -> Result<Option<Vec<Platform>>> {\n        match &self.lockfile_platforms {\n            Some(platforms) if !platforms.is_empty() => {\n                Ok(Some(Platform::parse_multiple(platforms)?))\n            }\n            _ => Ok(None),\n        }\n    }\n\n    pub(crate) fn force_provenance_verify(&self) -> bool {\n        self.locked_verify_provenance || self.paranoid\n    }\n\n    pub(crate) fn ensure_experimental(&self, what: &str) -> Result<()> {\n        if !self.experimental {\n            bail!(\"{what} is experimental. Enable it with `mise settings experimental=true`\");\n        }\n        Ok(())\n    }\n\n    pub(crate) fn trusted_config_paths(&self) -> impl Iterator<Item = PathBuf> + '_ {\n        self.trusted_config_paths\n            .iter()\n            .filter(|p| !p.to_string_lossy().is_empty())\n            .map(file::replace_path)\n            .filter_map(|p| file::canonicalize_cached(&p))\n    }\n\n    pub(crate) fn global_tools_file(&self) -> PathBuf {\n        env::var_path(\"MISE_GLOBAL_CONFIG_FILE\")\n            .or_else(|| env::var_path(\"MISE_CONFIG_FILE\"))\n            .unwrap_or_else(|| {\n                if self.asdf_compat {\n                    env::HOME.join(&*env::MISE_DEFAULT_TOOL_VERSIONS_FILENAME)","sourceCodeStart":1539,"sourceCodeEnd":1575,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/config/settings.rs#L1539-L1575","documentation":"`Settings::ensure_experimental` is a gate for features that are not yet stable. Calling it when the `experimental` setting is false produces this error telling the user to opt in via `mise settings experimental=true`. mise throws it deliberately so unpolished features are not used accidentally.","triggerScenarios":"Invoking any code path that calls `settings.ensure_experimental(...)` (e.g. provenance-adjacent experimental features) while `settings.experimental` is false/unset.","commonSituations":"A user tries an experimental feature advertised in docs or a GitHub issue without enabling the global experimental flag; CI environments where the flag was never set; after upgrading mise a previously fine workflow now calls an experimental gate.","solutions":["Run `mise settings experimental=true` (or set `MISE_EXPERIMENTAL=1`) and retry.","Set `[settings] experimental = true` in ~/.config/mise/config.toml for persistent enablement.","If the feature should not be experimental for your use case, use the stable alternative instead."],"exampleFix":"# before\nmise run my-feature\n# Error: my-feature is experimental...\n\n# after\nmise settings experimental=true\nmise run my-feature","handlingStrategy":"try-catch","validationCode":"# shell: gate on the flag before invoking an experimental feature\nmise settings get experimental | grep -q true || { echo \"enable: mise settings experimental=true\"; exit 1; }","typeGuard":null,"tryCatchPattern":"// rust: catch and surface actionable guidance\nmatch settings.ensure_experimental(\"my-feature\") {\n    Err(e) if e.to_string().contains(\"experimental\") => {\n        eprintln!(\"Run: mise settings experimental=true\");\n    }\n    r => r?,\n}","preventionTips":["Enable experimental once globally in ~/.config/mise/config.toml if you rely on experimental features.","In CI, set MISE_EXPERIMENTAL=1 as an env var for the job.","Check docs for whether a feature graduated to stable and drop the dependency on the flag."],"tags":["config","settings","experimental","feature-flag"],"backgroundTag":"feature-not-enabled","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"}