jdx/mise · warning
is defined in which overrides the global config ( )
Error message
{plugin} is defined in {p} which overrides the global config ({global}) What it means
warn_if_hidden in src/cli/use.rs emits a warning (not an error) when a tool version currently in effect comes from a local config file (mise.toml or .tool-versions) that overrides the global config. The message names the plugin, the overriding file path, and the global config path so the user understands which definition wins.
Solutions
- Decide which definition should win: edit or remove the tool entry from the local file shown in the warning.
- Run `mise use -g <tool>@<version>` and remove the conflicting local pin if global is intended.
- If the local pin is intended, ignore the warning or update it to the desired version.
Example fix
# before (project .tool-versions shadows global) node 18.0.0 # after: remove the local pin so global config applies # (delete the `node` line from .tool-versions)
Defensive patterns
Strategy: validation
Validate before calling
# check which file defines each tool before editing global config
mise ls --json | jq '.[] | select(.source != "~/.config/mise/config.toml") | {tool: .name, source: .source}' Prevention
- Run `mise ls` to see the source file of each active tool version.
- Keep tool pins either global or local per repo, not accidentally both.
- Add .tool-versions/mise.toml review to onboarding so devs know which config wins.
- Use `mise use -g` deliberately and remove shadowing local entries when global intent changes.
When it happens
Trigger: Running `mise use` when the resolved ToolSource for a tool is a project-level MiseToml/ToolVersions file that differs (per same_file check) from the global config path and defines the same tool.
Common situations: A project .tool-versions pinning node to a different version than the global mise.toml; developers surprised that `mise use -g` changes are shadowed in a repo containing its own config.
Understand the failure class
Background: Conflicting config options: "cannot be used together" — configuration validation errors across open-source libraries — this error's family across 162 libraries.
Related errors
- cannot export ' ': use a shorthand attribute such as…
- Check command must not be empty
- collection updates require scalar or array values
- config file not found
- config file not found
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/fc5f004ab37fd358.
Report an issue: GitHub.
Appendix: source
Thrown at src/cli/use.rs:442
// Tool-level options cannot be represented in .tool-versions or idiomatic
// version files. Keep the selected directory, but write the hook to its
// default TOML config rather than unexpectedly selecting a TOML file above it.
path.set_file_name(&*env::MISE_DEFAULT_CONFIG_FILENAME);
}
config_file::parse_or_init(&path).await
}
async fn warn_if_hidden(&self, config: &Arc<Config>, global: &Path) {
let ts = ToolsetBuilder::new()
.build(config)
.await
.unwrap_or_default();
let warn = |targ: &ToolArg, p| {
let plugin = &targ.ba;
let p = display_path(p);
let global = display_path(global);
warn!("{plugin} is defined in {p} which overrides the global config ({global})");
};
for target in &self.tools {
let targ = &target.tool;
if let Some(tv) = ts.versions.get(targ.ba.as_ref())
&& let ToolSource::MiseToml(p) | ToolSource::ToolVersions(p) = &tv.source
&& !file::same_file(p, global)
&& !config::is_system_config(p)
{
warn(targ, p);
}
}
}
fn render_success_message(
&self,
cf: &dyn ConfigFile,
versions: &[ToolVersion],
remove: &[BackendArg],View on GitHub (pinned to 533346cc37)