{"record":{"id":"1186100ffc6a96ad","repo":"jdx/mise","slug":"user-service-name-must-set-a-non-empty-comman","errorCode":null,"errorMessage":"user service '{name}' must set a non-empty `command`","messagePattern":"user service '(.+?)' must set a non-empty `command`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/user_services.rs","lineNumber":131,"sourceCode":"                    Some(exe) => Some(\n                        std::iter::once(quote_program(&exe.to_string_lossy()))\n                            .chain(definition.args.iter().map(|arg| arg.to_string()))\n                            .collect::<Vec<_>>()\n                            .join(\" \"),\n                    ),\n                    None => {\n                        unresolved = Some(\n                            \"no durable mise executable; install mise on this host first\"\n                                .to_string(),\n                        );\n                        None\n                    }\n                }\n            }\n            (None, Some(command)) => {\n                let command = command.trim();\n                if command.is_empty() {\n                    bail!(\"user service '{name}' must set a non-empty `command`\");\n                }\n                Some(command.to_string())\n            }\n        };\n        Ok(Self {\n            name,\n            description,\n            command,\n            unresolved,\n            builtin: config.builtin,\n            restart: restart.unwrap_or_default(),\n            nice,\n            environment: config.environment,\n            working_directory: config.working_directory,\n            requires_tools: config.requires_tools,\n            state: config.state,\n            enabled: config.enabled,\n            origin,","sourceCodeStart":113,"sourceCodeEnd":149,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/user_services.rs#L113-L149","documentation":"Validation in user service TOML parsing (from_toml_with_executable, src/system/user_services.rs). This fires when a service's `command` field is present but resolves to an empty string (e.g. `command = \"\"`), or when a configured executable lookup yields nothing to quote into the command line. An empty command cannot produce a valid service definition, so parsing is rejected rather than emitting a broken service unit.","triggerScenarios":"Thrown at src/system/user_services.rs:131 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set a real program path in `command`","Check for a quoting mistake that produced an empty string","Use `builtin` if the command should come from mise"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"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"}