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
41.65k stars 2.17k forks source link

copilot can't be started #4524

Open lovealbeni opened 10 months ago

lovealbeni commented 10 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

zed tell me copilot can't be started: missing executable in directory "/Users/falor/Library/Application Support/Zed/copilot/copilot-v0.5.0" , and click "reinstall copilot" doesn't work

Environment

Zed: v0.99.1 (stable) OS: macOS 13.5.0 Memory: 16 GiB Architecture: x86_64

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.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

2023-08-23T02:19:14 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc 2023-08-23T02:19:14 [INFO] add connection to peer 2023-08-23T02:19:14 [INFO] waiting for server hello 2023-08-23T02:19:14 [INFO] got server hello 2023-08-23T02:19:14 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 197, id: 929043 }) 2023-08-23T02:19:14 [INFO] set status on client 0: Connected { peer_id: PeerId { owner_id: 197, id: 929043 }, connection_id: ConnectionId { owner_id: 0, id: 0 } } 2023-08-23T02:19:18 [WARN] request completed with error: request or operation took longer than the configured timeout time 2023-08-23T02:19:18 [ERROR] crates/copilot/src/copilot.rs:945: error downloading copilot release: request or operation took longer than the configured timeout time 2023-08-23T02:19:21 [WARN] request completed with error: request or operation took longer than the configured timeout time 2023-08-23T02:19:21 [WARN] failed to send user avatar request: request or operation took longer than the configured timeout time 2023-08-23T02:19:21 [WARN] request completed with error: request or operation took longer than the configured timeout time 2023-08-23T02:19:21 [WARN] failed to send user avatar request: request or operation took longer than the configured timeout time 2023-08-23T02:19:29 [WARN] request completed with error: request or operation took longer than the configured timeout time 2023-08-23T02:19:29 [ERROR] crates/copilot/src/copilot.rs:945: error downloading copilot release: request or operation took longer than the configured timeout time 2023-08-23T02:19:38 [WARN] request completed with error: request or operation took longer than the configured timeout time 2023-08-23T02:19:38 [ERROR] crates/copilot/src/copilot.rs:945: error downloading copilot release: request or operation took longer than the configured timeout time

xinj10 commented 5 months ago

Same issue here. A workaround is to download copilot language sever manually, and put it in your ~/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist. To do this, you need to download the release tarball from zed-industries/copilot. Extract all the files and move them under dist, and restart Zed. This works for me.

deepansh96 commented 4 months ago

Same issue here. A workaround is to download copilot language sever manually, and put it in your ~/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist. To do this, you need to download the release tarball from zed-industries/copilot. Extract all the files and move them under dist, and restart Zed. This works for me.

Worked for me thanks!