{"record":{"id":"3c793f807a5c4058","repo":"jdx/mise","slug":"type-not-found","errorCode":null,"errorMessage":"Type not found","messagePattern":"Type not found","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cli/config/set.rs","lineNumber":222,"sourceCode":"            TomlValueTypes::Bool => toml_edit::value(value.parse::<bool>()?),\n            TomlValueTypes::List => {\n                let mut list = toml_edit::Array::new();\n                for item in value.split(',').map(|s| s.trim()) {\n                    list.push(item);\n                }\n                toml_edit::Item::Value(toml_edit::Value::Array(list))\n            }\n            TomlValueTypes::Set => {\n                let mut set = toml_edit::Array::new();\n                let value = value.trim();\n                if value != \"[]\" {\n                    for item in value.split(',').map(|s| s.trim()).filter(|s| !s.is_empty()) {\n                        set.push(item);\n                    }\n                }\n                toml_edit::Item::Value(toml_edit::Value::Array(dedup_toml_array(&set)))\n            }\n            TomlValueTypes::Infer => bail!(\"Type not found\"),\n        };\n\n        let table = container.as_table_like_mut().ok_or_else(|| {\n            eyre::eyre!(\n                \"cannot set '{full_key}': '{}' is already set to a non-table value\",\n                parts[..parts.len() - 1].join(\".\")\n            )\n        })?;\n        if self.append {\n            append_value(table, last_key, value)?;\n        } else if self.remove {\n            remove_value(table, last_key, &value)?;\n        } else {\n            table.insert(last_key, value);\n        }\n\n        let raw = config.to_string();\n        MiseToml::from_str(&raw, &file)?;","sourceCodeStart":204,"sourceCodeEnd":240,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/cli/config/set.rs#L204-L240","documentation":"`mise config set` must know how to serialize the value based on the key's declared type in mise's settings schema. If the type resolves to `Infer` — i.e. no known type mapping exists for that key — mise cannot safely coerce the string input and bails with 'Type not found' instead of guessing.","triggerScenarios":"`mise config set <unknown-key> <value>` (or set-type variants) where the key is not a recognized mise setting with a declared TOML type, so the type resolution falls through to the Infer fallback; also typos in setting names.","commonSituations":"Setting a custom non-settings key via `mise config set` when the key isn't in the settings schema; misspelled setting names after mise upgrades/renames; script-generated keys from stale docs.","solutions":["Check the exact setting name with `mise settings ls` or the docs (schema-generated) — fix typos","Use a setting that has a declared type (bool/int/string/list) in settings.toml","For arbitrary keys, edit mise.toml directly (or use `mise config get`/manual toml editing)","Update mise if the setting was added in a newer version"],"exampleFix":"// before\n$ mise config set settngs.verbose true  # typo -> Type not found\n// after\n$ mise settings ls | grep verbose\n$ mise config set settings.verbose true","handlingStrategy":"validation","validationCode":"mise settings ls | grep -Fxq \"$key\" || { echo \"unknown setting: $key\"; exit 1; }","typeGuard":null,"tryCatchPattern":"mise config set \"$key\" \"$val\" 2>&1 | grep -q 'Type not found' && { echo \"unknown setting $key — see mise settings ls\"; exit 1; }","preventionTips":["Validate setting names against `mise settings ls` or the generated schema","Keep mise updated so new settings have declared types","Edit mise.toml directly for custom/non-settings keys","Lint config scripts against the schema after mise upgrades"],"tags":["config","settings","schema","cli"],"backgroundTag":"schema-validation-failed","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"}