{"record":{"id":"fc5f004ab37fd358","repo":"jdx/mise","slug":"plugin-is-defined-in-p-which-overrides-the-glo","errorCode":null,"errorMessage":"{plugin} is defined in {p} which overrides the global config ({global})","messagePattern":"(.+?) is defined in (.+?) which overrides the global config \\((.+?)\\)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"src/cli/use.rs","lineNumber":442,"sourceCode":"            // Tool-level options cannot be represented in .tool-versions or idiomatic\n            // version files. Keep the selected directory, but write the hook to its\n            // default TOML config rather than unexpectedly selecting a TOML file above it.\n            path.set_file_name(&*env::MISE_DEFAULT_CONFIG_FILENAME);\n        }\n\n        config_file::parse_or_init(&path).await\n    }\n\n    async fn warn_if_hidden(&self, config: &Arc<Config>, global: &Path) {\n        let ts = ToolsetBuilder::new()\n            .build(config)\n            .await\n            .unwrap_or_default();\n        let warn = |targ: &ToolArg, p| {\n            let plugin = &targ.ba;\n            let p = display_path(p);\n            let global = display_path(global);\n            warn!(\"{plugin} is defined in {p} which overrides the global config ({global})\");\n        };\n        for target in &self.tools {\n            let targ = &target.tool;\n            if let Some(tv) = ts.versions.get(targ.ba.as_ref())\n                && let ToolSource::MiseToml(p) | ToolSource::ToolVersions(p) = &tv.source\n                && !file::same_file(p, global)\n                && !config::is_system_config(p)\n            {\n                warn(targ, p);\n            }\n        }\n    }\n\n    fn render_success_message(\n        &self,\n        cf: &dyn ConfigFile,\n        versions: &[ToolVersion],\n        remove: &[BackendArg],","sourceCodeStart":424,"sourceCodeEnd":460,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/cli/use.rs#L424-L460","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","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."],"exampleFix":"# before (project .tool-versions shadows global)\nnode 18.0.0\n# after: remove the local pin so global config applies\n# (delete the `node` line from .tool-versions)","handlingStrategy":"validation","validationCode":"# check which file defines each tool before editing global config\nmise ls --json | jq '.[] | select(.source != \"~/.config/mise/config.toml\") | {tool: .name, source: .source}'","typeGuard":null,"tryCatchPattern":null,"preventionTips":["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."],"tags":["config","override","warning","cli"],"backgroundTag":"conflicting-config-options","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"}