zed-industries/zed · warning · FileNotFoundError
eval-cli binary not found at
Error message
eval-cli binary not found at {binary}. Build it with: cargo build --release -p eval_cli What it means
ensure_markdown_path requires at least one path segment so there is a file name to check. When the path segment list is empty (no last() available), the importer bails because there is no file to import. It is reached for raw.githubusercontent.com URLs with an empty path and for blob URLs where nothing follows the reference.
Solutions
- Append the full path to the .md file, e.g. https://raw.githubusercontent.com/owner/repo/main/SKILL.md
- Recopy the URL from the file page rather than constructing it by hand
Example fix
# before https://github.com/acme/skills/blob/main # after https://github.com/acme/skills/blob/main/SKILL.md
Defensive patterns
Strategy: validation
Validate before calling
let has_file_segment = url.path_segments()
.map(|mut s| s.next_back().is_some_and(|name| !name.is_empty()))
.unwrap_or(false);
ensure!(has_file_segment, "Paste a GitHub .md URL"); Type guard
fn ends_with_file_name(url: &url::Url) -> bool {
url.path_segments()
.and_then(|s| s.last())
.is_some_and(|name| !name.is_empty())
} Prevention
- Require a non-empty final path segment in the form before import
- Avoid hand-constructing raw URLs; copy them from GitHub's Raw button
When it happens
Trigger: A raw.githubusercontent.com URL with an empty path, or a github.com blob URL like github.com/owner/repo/blob/main where file_path after the reference is empty, so path_segments.last() is None.
Common situations: Hand-edited or truncated URLs that stop at the branch name; a URL where the file name part was accidentally deleted.
Related errors
- Message params.options is undefined
- Unknown method
- Message params.text is undefined
- Copilot sign-in failed
- Copilot sign-in failed: unexpected response from GitHub
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/56bd43b12ff7f8c4.
Report an issue: GitHub.
Appendix: source
Thrown at crates/eval_cli/zed_eval/agent.py:101
await self._install_uv_and_ruff(environment)
# Modal can mount a prebuilt binary inside each sandbox, avoiding uploads.
container_path = self._extra_env.get("EVAL_CLI_CONTAINER_PATH")
if container_path:
await self.exec_as_root(
environment,
command=(
f"cp {shlex.quote(container_path)} /usr/local/bin/eval-cli && "
"chmod +x /usr/local/bin/eval-cli && "
"eval-cli --help"
),
)
return
if self._binary_path:
binary = Path(self._binary_path)
if not binary.exists():
raise FileNotFoundError(
f"eval-cli binary not found at {binary}. "
"Build it with: cargo build --release -p eval_cli"
)
await environment.upload_file(
source_path=binary,
target_path="/usr/local/bin/eval-cli",
)
await self.exec_as_root(
environment,
command="chmod +x /usr/local/bin/eval-cli && eval-cli --help",
)
return
if self._download_url:
await self.exec_as_root(
environment,
command=(
f"curl -fsSL {shlex.quote(self._download_url)} "View on GitHub (pinned to f4178619ac)