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
47.74k stars 2.79k forks source link

Language server failure: go / json (missing field `name`) #4995

Open JacobWithACapitalJ opened 1 year ago

JacobWithACapitalJ commented 1 year ago

Check for existing issues

Describe the bug / provide steps to reproduce it

First opening a multi lanuage monorepo in Zed, and it seems unable to download any language servers (Go and json).

Language server error: Go

error deserializing latest release

Caused by:
    missing field `name` at line 1 column 278

Environment

zed: 0.74.2 macos: 13.0.1 (intel)

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

Screenshot 2023-02-23 at 16 33 58

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-02-23T16:33:51 [ERROR] no cached binary
2023-02-23T16:33:51 [ERROR] error deserializing latest release
JacobWithACapitalJ commented 1 year ago

After submitting this, I restarted zed onto an open .go file and it downloaded the server. Note, i had restarted multiple times before without it working. Happy to close this issue as it might be unique to my setup/repo.

JosephTLyons commented 1 year ago

I'm going to leave this open, because I run into this every day as well. I'm the only one on the team who seems to have this issue. This issue is hard to track down - we recently tried to fix it and closed out this issue:

But it popped back up for me 😢

Definitely want to get this one solved!

wadehammes commented 1 year ago

Also happening with me for the Typescript server

cjlala commented 1 year ago

Can we manually download the language server?

tylerFowler commented 1 year ago

I tried reinstalling, using Homebrew, using the installer from the website - nothing seems to ease this problem for me.

Edit: just to be as clear as possible, this bug is wholesale preventing me from being able to use Zed in any of my normal workflows - unclear if it is being prioritized or not.

JacobWithACapitalJ commented 1 year ago

have to tried using the workspace: restart command? it looks like the behaviour is slightly different when restarting via that command?

tylerFowler commented 1 year ago

Speaking for my own experience, I have tried that as well to no avail.

tylerFowler commented 1 year ago

Any ETA here?

tylerFowler commented 1 year ago

Oh wow! And as soon as I check up of course I discovered a fix for myself. I finally got the Go language server download through one or more of the following:

  1. Restart zed after download failure (missing field name)
  2. Run "restart language server"
  3. Run "restart workspace"

And then it seems to successfully download.

futurist commented 1 year ago

opened the log file: ~/Library/Logs/Zed/Zed.log

with below lines:

2023-06-25T10:39:03 [ERROR] Error deserializing Github API response text: "{\"message\":\"API rate limit exceeded for 203.208.167.146. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)\",\"documentation_url\":\"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting\"}\n"
2023-06-25T10:39:03 [ERROR] crates/zed/src/languages/go.rs:134: no cached binary
2023-06-25T10:39:03 [ERROR] crates/project/src/project.rs:2459: error deserializing latest release
github-actions[bot] commented 6 days ago

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. Are you able to reproduce this issue in the latest version of Zed? If so, please let us know by commenting on this issue and we will keep it open; otherwise, we'll close it in a week. Feel free to open a new issue if you're seeing this message after the issue has been closed. Thanks for your help!