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.57k stars 2.07k forks source link

Copilot logs and copilot RPC messages are missing from language server logs pane. #4340

Open Raees678 opened 7 months ago

Raees678 commented 7 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Copilot logs and RPC messages from copilot are sometimes missing in the language server logs pane, for all my projects.

Steps to reproduce:

  1. Create a directory
  2. Create a file, and type a little until copilot ghost text shows up.
  3. Open language server logs pane (copilot logs are missing).

Quitting and restarting also fails to show the logs. I have also tried reinstalling zed and reinstalling copilot.

Weirdly, for some of my other projects, the copilot logs were visible in this pane when I opened them, but I couldn't deduce when they would show up and when they wouldn't, and after a fresh install, I don't see copilot logs for any projects at all.

Environment

Zed: v0.112.3 (stable) OS: macOS 14.0.0 Memory: 64 GiB Architecture: aarch64

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

https://github.com/zed-industries/community/assets/10237081/414227b0-f8f4-42b6-9fc1-48563c70bb54

The above video shows the steps to reproduce, and the missing copilot logs section in the language server logs pane.

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.

zed.log

Raees678 commented 7 months ago

I'm actually trying to debug another issue with copilot potentially freezing at times. While this is being investigated, is there another way I can access copilot logs (like tailing something from the terminal)?

JosephTLyons commented 7 months ago

cc @mikayla-maki

Raees678 commented 7 months ago

When I updated my system to MacOS 14.1, and restarted the system, I can sometimes get the copilot pane to show up on older projects, but not always I think. And on new projects the copilot logs still don't show up. I cant reproduce or figure what causes the pane to appear/not appear.