zed-industries/zed · error

Dev servers were removed in v0.157.x please upgrade to SSH…

Error message

Dev servers were removed in v0.157.x please upgrade to SSH remoting: https://zed.dev/docs/remote-development

What it means

The CLI was invoked (likely via `zed dev`) with the removed dev-server functionality; this is a hard deprecation error steering users to the SSH remote-development replacement, fired during argument processing in run before any editor action happens.

Solutions

  1. Use SSH remote development as documented at https://zed.dev/docs/remote-development
  2. Upgrade the CLI to a version whose dev subcommand semantics match the installed editor
  3. Open remote paths via the ssh:// URL scheme instead of dev servers
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/cli/src/main.rs:694 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20). Data as JSON: /api/errors/bababe011de71a7d. Report an issue: GitHub.

Appendix: source

Thrown at crates/cli/src/main.rs:694

            urls.push(path.to_string());
        } else if path == "-" && args.paths_with_position.len() == 1 {
            let file = NamedTempFile::new()?;
            paths.push(file.path().to_string_lossy().into_owned());
            let (file, _) = file.keep()?;
            stdin_tmp_file = Some(file);
        } else if let Some(file) = anonymous_fd(path) {
            let tmp_file = NamedTempFile::new()?;
            paths.push(tmp_file.path().to_string_lossy().into_owned());
            let (tmp_file, _) = tmp_file.keep()?;
            anonymous_fd_tmp_files.push((file, tmp_file));
        } else if let Some(wsl) = wsl {
            urls.push(format!("file://{}", parse_path_in_wsl(path, wsl)?));
        } else {
            paths.push(parse_path_with_position(path)?);
        }
    }

    anyhow::ensure!(
        args.dev_server_token.is_none(),
        "Dev servers were removed in v0.157.x please upgrade to SSH remoting: https://zed.dev/docs/remote-development"
    );

    rayon::ThreadPoolBuilder::new()
        .num_threads(4)
        .stack_size(10 * 1024 * 1024)
        .thread_name(|ix| format!("RayonWorker{}", ix))
        .build_global()
        .unwrap();

    let sender: JoinHandle<anyhow::Result<()>> = thread::Builder::new()
        .name("CliReceiver".to_string())
        .spawn({
            let exit_status = exit_status.clone();
            let user_data_dir_for_thread = user_data_dir.clone();
            move || {
                let (_, handshake) = server.accept().context("Handshake after Zed spawn")?;

View on GitHub (pinned to f4178619ac)