zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
39.3k stars 2.04k forks source link

Copilot can't be started: oneshot canceled #12187

Open spaceunifyfifty opened 1 month ago

spaceunifyfifty commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Github Copilot no longer works for me in Zed. I see that is inactive, and click "sign-in" . After a few moments, I see an error popup

Copilot can't be started: oneshot canceled

image

I have tried:

without success

Environment

Zed: v0.136.2 (Zed) OS: macOS 14.2.1 Memory: 8 GiB Architecture: aarch64

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

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

[INFO] Node runtime install_if_needed
[INFO] starting language server. binary path: "/Users/john/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", 
working directory: "/", args: ["/Users/john/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
[ERROR] crates/lsp/src/lsp.rs:357: cannot read LSP message headers
[ERROR] crates/lsp/src/lsp.rs:379: Broken pipe (os error 32)
[ERROR] crates/lsp/src/lsp.rs:773: server shut down

and I have also seen before:

[ERROR] crates/inline_completion_button/src/inline_completion_button.rs:493: copilot hasn't started yet
spaceunifyfifty commented 1 month ago

Following https://github.com/zed-industries/zed/issues/6954 I have attempted to solve this by

  1. uninstall zed from brew
    brew uninstall zed
    brew cleanup -s
  2. remove copilot related cache
    rm -rf ~/.config/github-copilot
    rm -rf ~/Library/Application\ Support/Zed/copilot
  3. manually install zed from the official aarch64 .dmg from https://zed.dev/download

The issue persists; copilot will not turn on.

JosephTLyons commented 1 month ago

Did this just start happening with a specific version, @spaceunifyfifty?

spaceunifyfifty commented 1 month ago

Did this just start happening with a specific version, @spaceunifyfifty?

I am not sure. I feel like I first noticed this a few weeks ago.

mdugue commented 2 weeks ago

same here. Tried reinstalling the app and clearing ~/.config/github-copilot & Application Support/, but no effect. Any news on this @spaceunifyfifty @JosephTLyons ?

jpshall commented 1 week ago

I'm facing the same issue on a linux build