jdx/mise · error
Type not found
Error message
Type not found
What it means
`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.
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
Example fix
// before $ mise config set settngs.verbose true # typo -> Type not found // after $ mise settings ls | grep verbose $ mise config set settings.verbose true
Defensive patterns
Strategy: validation
Validate before calling
mise settings ls | grep -Fxq "$key" || { echo "unknown setting: $key"; exit 1; } Try / catch
mise config set "$key" "$val" 2>&1 | grep -q 'Type not found' && { echo "unknown setting $key — see mise settings ls"; exit 1; } Prevention
- 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
When it happens
Trigger: `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.
Common situations: 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.
Understand the failure class
Background: Schema validation failed / invalid input schema: payload rejected because its shape doesn't match the expected schema — this error's family across 28 libraries.
Related errors
- manager ' ' is excluded by the system_packages.managers…
- manager ' ' is excluded by the system_packages.managers…
- cannot export ' ': use a shorthand attribute such as…
- Check command must not be empty
- collection updates require scalar or array values
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/3c793f807a5c4058.
Report an issue: GitHub.
Appendix: source
Thrown at src/cli/config/set.rs:222
TomlValueTypes::Bool => toml_edit::value(value.parse::<bool>()?),
TomlValueTypes::List => {
let mut list = toml_edit::Array::new();
for item in value.split(',').map(|s| s.trim()) {
list.push(item);
}
toml_edit::Item::Value(toml_edit::Value::Array(list))
}
TomlValueTypes::Set => {
let mut set = toml_edit::Array::new();
let value = value.trim();
if value != "[]" {
for item in value.split(',').map(|s| s.trim()).filter(|s| !s.is_empty()) {
set.push(item);
}
}
toml_edit::Item::Value(toml_edit::Value::Array(dedup_toml_array(&set)))
}
TomlValueTypes::Infer => bail!("Type not found"),
};
let table = container.as_table_like_mut().ok_or_else(|| {
eyre::eyre!(
"cannot set '{full_key}': '{}' is already set to a non-table value",
parts[..parts.len() - 1].join(".")
)
})?;
if self.append {
append_value(table, last_key, value)?;
} else if self.remove {
remove_value(table, last_key, &value)?;
} else {
table.insert(last_key, value);
}
let raw = config.to_string();
MiseToml::from_str(&raw, &file)?;View on GitHub (pinned to 533346cc37)