jdx/mise · error

is experimental. Enable it with `mise settings…

Error message

{what} is experimental. Enable it with `mise settings experimental=true`

What it means

`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.

Solutions

  1. Run `mise settings experimental=true` (or set `MISE_EXPERIMENTAL=1`) and retry.
  2. Set `[settings] experimental = true` in ~/.config/mise/config.toml for persistent enablement.
  3. If the feature should not be experimental for your use case, use the stable alternative instead.

Example fix

# before
mise run my-feature
# Error: my-feature is experimental...

# after
mise settings experimental=true
mise run my-feature
Defensive patterns

Strategy: try-catch

Validate before calling

# shell: gate on the flag before invoking an experimental feature
mise settings get experimental | grep -q true || { echo "enable: mise settings experimental=true"; exit 1; }

Try / catch

// rust: catch and surface actionable guidance
match settings.ensure_experimental("my-feature") {
    Err(e) if e.to_string().contains("experimental") => {
        eprintln!("Run: mise settings experimental=true");
    }
    r => r?,
}

Prevention

When it happens

Trigger: Invoking any code path that calls `settings.ensure_experimental(...)` (e.g. provenance-adjacent experimental features) while `settings.experimental` is false/unset.

Common situations: 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.

Related errors


AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17). Data as JSON: /api/errors/8bb848a0d604ea92. Report an issue: GitHub.

Appendix: source

Thrown at src/config/settings.rs:1557

    /// Returns configured lockfile platforms parsed into Platform structs, or None for defaults.
    /// Errors on invalid platform strings (same validation as `mise lock --platform`).
    pub(crate) fn lockfile_platforms(&self) -> Result<Option<Vec<Platform>>> {
        match &self.lockfile_platforms {
            Some(platforms) if !platforms.is_empty() => {
                Ok(Some(Platform::parse_multiple(platforms)?))
            }
            _ => Ok(None),
        }
    }

    pub(crate) fn force_provenance_verify(&self) -> bool {
        self.locked_verify_provenance || self.paranoid
    }

    pub(crate) fn ensure_experimental(&self, what: &str) -> Result<()> {
        if !self.experimental {
            bail!("{what} is experimental. Enable it with `mise settings experimental=true`");
        }
        Ok(())
    }

    pub(crate) fn trusted_config_paths(&self) -> impl Iterator<Item = PathBuf> + '_ {
        self.trusted_config_paths
            .iter()
            .filter(|p| !p.to_string_lossy().is_empty())
            .map(file::replace_path)
            .filter_map(|p| file::canonicalize_cached(&p))
    }

    pub(crate) fn global_tools_file(&self) -> PathBuf {
        env::var_path("MISE_GLOBAL_CONFIG_FILE")
            .or_else(|| env::var_path("MISE_CONFIG_FILE"))
            .unwrap_or_else(|| {
                if self.asdf_compat {
                    env::HOME.join(&*env::MISE_DEFAULT_TOOL_VERSIONS_FILENAME)

View on GitHub (pinned to 533346cc37)