{"record":{"id":"8d759d7311a20515","repo":"jdx/mise","slug":"failed-to-parse-registry-option-k-as-a-toml-valu","errorCode":null,"errorMessage":"failed to parse registry option {k} as a TOML value: {e}","messagePattern":"failed to parse registry option (.+?) as a TOML value: (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/registry.rs","lineNumber":755,"sourceCode":"    pub(crate) fn ba(&self) -> Option<BackendArg> {\n        self.backends()\n            .first()\n            .map(|f| BackendArg::new(self.short.to_string(), Some(f.to_string())))\n    }\n\n    /// Get RegistryBackend for a specific full backend string\n    pub(crate) fn get_backend(&self, full: &str) -> Option<&RegistryBackend> {\n        self.backends.iter().find(|rb| rb.full == full)\n    }\n\n    /// Get options for a specific backend\n    pub(crate) fn backend_options(&self, full: &str) -> ToolVersionOptions {\n        let mut opts = IndexMap::new();\n\n        if let Some(backend) = self.get_backend(full) {\n            for (k, v) in backend.options {\n                let value = v.parse::<toml::Value>().unwrap_or_else(|e| {\n                    panic!(\"failed to parse registry option {k} as a TOML value: {e}\")\n                });\n                opts.insert(k.to_string(), value);\n            }\n        }\n\n        ToolVersionOptions {\n            opts: RawBackendOptions::from(opts),\n            ..Default::default()\n        }\n    }\n\n    pub(crate) fn version_order(&self, full: &str) -> Option<VersionOrder> {\n        matches!(\n            BackendType::guess(full),\n            BackendType::Aqua\n                | BackendType::Forgejo\n                | BackendType::Github\n                | BackendType::Gitlab","sourceCodeStart":737,"sourceCodeEnd":773,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/registry.rs#L737-L773","documentation":"Mise detects file-based tasks only when the files are executable. When no tasks are defined and mise finds non-executable candidate files in the task include directories, it raises this error with a count, the directories, and an executable-bit hint (file::make_executable_hint).","triggerScenarios":"`mise run <name>` (or task listing) in a project using file tasks (e.g. mise/tasks/) where the script files exist but lack the executable bit, so they are not registered as tasks.","commonSituations":"Cloning a repo on a filesystem that drops the exec bit (FAT/exFAT, Windows checkouts); files added via a tool or archive that didn't preserve permissions; forgetting chmod +x after creating a task script.","solutions":["Make the task files executable: chmod +x on the files in your tasks directory (see the hint in the error).","Set the file executable in git so fresh clones keep the bit: git update-index --chmod=+x tasks/mytask.","Convert the scripts to TOML-defined tasks ([tasks.x] in mise.toml) which don't need the exec bit."],"exampleFix":"// before\n-rw-r--r-- mise/tasks/build\n\n// after\nchmod +x mise/tasks/build\n# -rwxr-xr-x mise/tasks/build","handlingStrategy":"validation","validationCode":"# Ensure all file tasks are executable\nfind mise/tasks -type f ! -perm -u+x -exec chmod +x {} +","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Commit task scripts with the exec bit: git update-index --chmod=+x <file>.","On Windows/exFAT checkouts, prefer TOML-defined tasks over executable file tasks.","Check permissions after extracting projects from archives."],"tags":["tasks","permissions","file-tasks","executable"],"backgroundTag":"permission-denied","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"}