zed-industries/zed · warning · ValueError
registry dataset requires a name
Error message
registry dataset requires a name
What it means
The open listener normalizes ssh targets: after stripping ssh://, it requires a ':~/' or ':/' separator to form the path, and the host must parse as a non-empty url::Host. URLs that fail any of this bail with 'invalid ssh url' (the same message also appears as context when the ssh:// prefix itself is missing).
Solutions
- Use the canonical absolute-path form: zed ssh://user@host:/absolute/path
- Or the home-relative form: zed ssh://user@host:~/relative/path
- Bracket IPv6 literals: zed 'ssh://[2600::]:/path'
Example fix
# before zed ssh://dev@box:repos/proj # missing '/' after colon # after zed ssh://dev@box:/repos/proj # absolute path # or zed ssh://dev@box:~/repos/proj # home-relative
Defensive patterns
Strategy: validation
Validate before calling
// Normalize + validate before opening the remote project:
fn validate_ssh_url(input: &str) -> Result<()> {
let target = input.strip_prefix("ssh://").context("invalid ssh url: missing ssh:// prefix")?;
let (authority, _path) = target
.rsplit_once(":~/")
.or_else(|| target.rsplit_once(":/"))
.context("invalid ssh url: need ':/abs/path' or ':~/rel/path'")?;
let host = authority.rsplit_once('@').map_or(authority, |(_, host)| host);
ensure!(!host.is_empty() && url::Host::parse(host).is_ok(), "invalid ssh url: bad host");
Ok(())
} Type guard
fn is_valid_ssh_url(input: &str) -> bool {
let Some(target) = input.strip_prefix("ssh://") else { return false };
let Some((authority, _)) = target.rsplit_once(":~/").or_else(|| target.rsplit_once(":/")) else {
return false;
};
let host = authority.rsplit_once('@').map_or(authority, |(_, host)| host);
!host.is_empty() && url::Host::parse(host).is_ok()
} Prevention
- Standardize on 'zed ssh://user@host:/abs/path' in docs and shell aliases
- Bracket IPv6 hosts and always keep the slash after the colon
- Run URLs through a normalizer (same rules as the parser) before storing them in recent-projects lists
When it happens
Trigger: An ssh URL with no ':/' or ':~/' path separator (ssh://host), one whose separator is just ':' (ssh://host:relpath), or a host that fails url::Host::parse — empty host (ssh://user@/path), invalid characters, or unbracketed IPv6.
Common situations: Opening zed ssh:// links copied from docs/READMEs with nonstandard shapes; forgetting the slash after the colon (ssh://host:abs instead of ssh://host:/abs); user prefixes with unexpected characters.
Related errors
- aborting reconnect, because not in state that allows…
- build ids may only contain lowercase letters, numbers, '.'…
- cannot open repository on disconnected remote machine
- Prebuilt remote servers are not yet available for
- Prebuilt remote servers are not yet available for
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/d695f9fbc9420c81.
Report an issue: GitHub.
Appendix: source
Thrown at crates/eval_cli/zed_eval/harness_command.py:29
from typing import Any
from . import benchmarks, config
def _benchmark_block(run_request: dict[str, Any]) -> dict[str, Any]:
block = run_request.get("benchmark")
if not isinstance(block, dict):
raise ValueError("run request is missing a 'benchmark' block")
return block
def dataset_args(benchmark: dict[str, Any]) -> list[str]:
dataset = benchmark.get("dataset") or {}
kind = dataset.get("kind")
if kind == benchmarks.DATASET_REGISTRY:
name = dataset.get("name")
if not name:
raise ValueError("registry dataset requires a name")
return ["-d", name]
if kind in (benchmarks.DATASET_PATH, benchmarks.DATASET_PIER_PATH):
data_dir = dataset.get("data_dir")
if not data_dir:
raise ValueError("path dataset requires data_dir")
return ["-p", dataset_path(benchmark)]
raise ValueError(f"unsupported dataset kind: {kind}")
def dataset_clone_dir(benchmark: dict[str, Any]) -> str:
"""Where the controller clones the dataset repo for path datasets."""
return f"/tmp/datasets/{benchmark['id']}"
def dataset_path(benchmark: dict[str, Any]) -> str:
"""Repo-relative task directory inside the cloned dataset repo."""
dataset = benchmark.get("dataset") or {}
return f"{dataset_clone_dir(benchmark)}/{dataset.get('data_dir')}"View on GitHub (pinned to f4178619ac)