Skip to content

Task Execution Fails #20720

@andre0xFF

Description

@andre0xFF

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

When creating or editing a new task and attempting to run it, the task does not execute. No terminal window appears, and the following error is logged: IOError: Failed to spawn command '/bin/zsh': Not a directory (os error 20).

Steps to Reproduce:

  1. Create a new task with the following configuration:
    {
      "label": "gitversion",
      "command": "docker run -it gittools/gitversion:5.12.0"
    }
  2. Attempt to run the task.
  3. Observe that no terminal window appears and the task does not execute.

Expected Result:
The task should run successfully, and a terminal window should appear showing the output of the command.

Actual Result:
The task does not run, and no terminal window appears.

Environment

Zed: v0.161.2 (Zed)
OS: macOS 14.2.1
Memory: 16 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log
2024-11-15T09:52:24.174063Z [ERROR] Working directory: /Users/user/.config/zed/tasks.json Shell command: `/bin/zsh -i -c docker run -it gittools/gitversion:5.12.0`, IOError: Failed to spawn command '/bin/zsh': Not a directory (os error 20)

Caused by:
    Failed to spawn command '/bin/zsh': Not a directory (os error 20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug[core label]tasksterminalFeedback for terminal integration, shell commands, etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions