zed-industries/zed · error · TerminalError
Working directory: Shell command: ` `, IOError
Error message
Working directory: {} Shell command: `{}`, IOError: {} What it means
When spawning a task terminal, the subprocess could not be spawned; the working directory, shell command, and underlying IO error are combined into this diagnostic so the user can see why the task terminal failed.
Solutions
- Verify the shell program exists and is executable on PATH
- Check the working directory still exists; fix the terminal working-directory setting
- Inspect the IOError field for the concrete OS error (permissions, missing binary)
- Try a different shell in terminal settings
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at crates/terminal/src/terminal.rs:1191 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@916fc2b8cb (2026-08-20).
Data as JSON: /api/errors/95818d4d5541c195.
Report an issue: GitHub.
Appendix: source
Thrown at crates/terminal/src/terminal.rs:1191
args,
title_override,
} => Some(ShellParams::new(program, Some(args), title_override)),
};
let terminal_title_override =
shell_params.as_ref().and_then(|e| e.title_override.clone());
#[cfg(windows)]
let shell_program = shell_params.as_ref().map(|params| {
use util::ResultExt;
Self::resolve_path(¶ms.program)
.log_err()
.unwrap_or(params.program.clone())
});
// Note: when remoting, this shell_kind will scrutinize `ssh` or
// `wsl.exe` as a shell and fall back to posix or powershell based on
// the compilation target. This is fine right now due to the restricted
// way we use the return value, but would become incorrect if we
// supported remoting into windows.
let shell_kind = shell.shell_kind(cfg!(windows));
let scrolling_history = if task.is_some() {
// Tasks like `cargo build --all` may produce a lot of output, ergo allow maximum scrolling.
// After the task finishes, we do not allow appending to that terminal, so small tasks output should not
// cause excessive memory usage over time.
MAX_SCROLL_HISTORY_LINES
} else {
max_scroll_history_lines
.unwrap_or(DEFAULT_SCROLL_HISTORY_LINES)
.min(MAX_SCROLL_HISTORY_LINES)
};
let config = pty_term_config(scrolling_history, cursor_shape);
//Spawn a task so the Alacritty EventLoop (or the subprocess reader) can communicate with us
//TODO: Remove with a bounded sender which can be dispatched on &selfView on GitHub (pinned to 916fc2b8cb)