{"record":{"id":"b12f696598231486","repo":"jdx/mise","slug":"relative-remote-mise-path-does-not-name-an-executa","errorCode":null,"errorMessage":"relative remote mise path does not name an executable: {command:?}","messagePattern":"relative remote mise path does not name an executable: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/remote.rs","lineNumber":1261,"sourceCode":"        }\n        let home = remote_home.ok_or_else(|| eyre!(\"remote login home was not resolved\"))?;\n        return Ok(format!(\"{}/{suffix}\", home.trim_end_matches('/')));\n    }\n\n    let mut components = Vec::new();\n    for component in command.split('/') {\n        match component {\n            \"\" | \".\" => {}\n            \"..\" => {\n                if components.pop().is_none() {\n                    bail!(\"relative remote mise path escapes the staged project: {command:?}\");\n                }\n            }\n            component => components.push(component),\n        }\n    }\n    if components.is_empty() {\n        bail!(\"relative remote mise path does not name an executable: {command:?}\");\n    }\n    Ok(format!(\"{project}/{}\", components.join(\"/\")))\n}\n\nfn remote_mise_find_script() -> &'static str {\n    r#\"mise_path=$(command -v mise 2>/dev/null || true)\ncase \"$mise_path\" in /*) ;; *) mise_path= ;; esac\nif [ -z \"$mise_path\" ]; then\n  for candidate in \"$HOME/.local/bin/mise\" \"$HOME/.local/share/mise/bin/mise\" \"$HOME/.cargo/bin/mise\" /usr/local/bin/mise /opt/homebrew/bin/mise; do\n    if [ -x \"$candidate\" ]; then\n      mise_path=$candidate\n      break\n    fi\n  done\nfi\"#\n}\n\nfn remote_mise_output_script() -> String {","sourceCodeStart":1243,"sourceCodeEnd":1279,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/remote.rs#L1243-L1279","documentation":"After stripping `..`/`.` components, a relative remote mise path must still name something — at least one real path component — so it can be joined to the staged project directory. This error means the path normalized to nothing (e.g. `.`, `./`, or only dot segments), leaving no executable to reference.","triggerScenarios":"Normalizing a relative remote mise path whose components list is empty after filtering (e.g. `.` or `./.`); raised just before joining the path with the staged project directory.","commonSituations":"Placeholder config value left as `.`; a templated path where the variable portion was empty; typo leaving only separators and dot segments.","solutions":["Set the relative path to a real binary location inside the project, e.g. `bin/mise`","Use `~/.local/bin/mise` or an absolute path if the binary lives outside the project","Leave the remote mise path unset to use auto-discovery of mise on the host"],"exampleFix":"// before\nremote_mise = \".\"\n// after\nremote_mise = \"bin/mise\"","handlingStrategy":"validation","validationCode":"// require at least one real component after normalization\nfn names_executable(p: &str) -> bool {\n    p.split('/').any(|c| !c.is_empty() && c != \".\" && c != \"..\")\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Never configure `.` or bare separators as the remote mise path","Verify templated config values interpolate to a real binary path","Leave the setting unset to use mise auto-discovery instead"],"tags":["path-validation","config","remote"],"backgroundTag":"invalid-argument-value","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"}