Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSP not working..Zed hangs while checking for update #6280

Closed
1 task done
kevinschweikert opened this issue Sep 5, 2023 · 9 comments
Closed
1 task done

LSP not working..Zed hangs while checking for update #6280

kevinschweikert opened this issue Sep 5, 2023 · 9 comments
Labels
bug [core label] language server failure Language server doesn't work as expected language server An umbrella label for all language servers

Comments

@kevinschweikert
Copy link

kevinschweikert commented Sep 5, 2023

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

I wokring with an elixir project and in the past it worked perfectly fine. The language server, was working and everything. But since a few versions i have no language server functionality (autocomplete, formatting) and Zed is showing the Info: "Checking for updates to Elixir language server..." forever.
I tried with the preview version of Zed, but that didn't fix the issue.

Environment

Zed: v0.101.1 (stable)
OS: macOS 13.5.0
Memory: 64 GiB
Architecture: aarch64

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

image

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-09-05T09:24:16 [INFO] ========== starting zed ==========
2023-09-05T09:24:16 [INFO] Opening main db
2023-09-05T09:24:16 [INFO] set environment variables from shell:/opt/homebrew/bin/fish, path:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/Users/kevinschweikert/.local/share/rtx/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/TeX/texbin:/Applications/Wireshark.app/Contents/MacOS
2023-09-05T09:24:16 [INFO] Opening main db
2023-09-05T09:24:16 [INFO] build git repository ".git"
2023-09-05T09:24:16 [INFO] Opening main db
2023-09-05T09:24:16 [INFO] Opening main db
2023-09-05T09:24:16 [INFO] starting language server "yaml-language-server", path: "/Users/kevinschweikert/projects/[PROJECT]", id: 0
2023-09-05T09:24:16 [INFO] Node runtime install_if_needed
2023-09-05T09:24:16 [INFO] starting language server "elixir-ls", path: "/Users/kevinschweikert/projects/[PROJECT]", id: 1
2023-09-05T09:24:16 [INFO] Node runtime install_if_needed
2023-09-05T09:24:17 [INFO] 0 unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "0fa9c5b6-1b81-49f3-a6b3-b62d2dcb1d31",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2023-09-05T09:24:17 [INFO] Node runtime install_if_needed
2023-09-05T09:24:18 [ERROR] invalid LSP message header ""
2023-09-05T09:24:18 [ERROR] Broken pipe (os error 32)
2023-09-05T09:24:18 [ERROR] server shut down
2023-09-05T09:24:18 [ERROR] failed to start language server "elixir-ls": oneshot canceled
2023-09-05T09:24:18 [INFO] About to spawn test binary
2023-09-05T09:24:18 [WARN] test binary failed to launch
2023-09-05T09:24:18 [WARN] test binary check failed
2023-09-05T09:24:18 [INFO] beginning to reinstall server
2023-09-05T09:24:18 [INFO] deleting server container
2023-09-05T09:24:18 [INFO] starting language server "elixir-ls", path: "/Users/kevinschweikert/projects/[PROJECT]", id: 2
2023-09-05T09:24:19 [ERROR] invalid LSP message header ""
2023-09-05T09:24:19 [ERROR] Broken pipe (os error 32)
2023-09-05T09:24:19 [ERROR] server shut down
2023-09-05T09:24:19 [ERROR] failed to start language server "elixir-ls": oneshot canceled
2023-09-05T09:24:19 [INFO] About to spawn test binary
2023-09-05T09:24:19 [WARN] test binary failed to launch
2023-09-05T09:24:19 [WARN] test binary check failed
2023-09-05T09:24:19 [INFO] beginning to reinstall server
2023-09-05T09:24:19 [INFO] deleting server container
2023-09-05T09:24:19 [INFO] starting language server "elixir-ls", path: "/Users/kevinschweikert/projects/[PROJECT]", id: 3
2023-09-05T09:24:20 [ERROR] invalid LSP message header ""
2023-09-05T09:24:20 [ERROR] Broken pipe (os error 32)
2023-09-05T09:24:20 [ERROR] server shut down
2023-09-05T09:24:20 [ERROR] failed to start language server "elixir-ls": oneshot canceled
2023-09-05T09:24:20 [INFO] About to spawn test binary
2023-09-05T09:24:20 [WARN] test binary failed to launch
2023-09-05T09:24:20 [WARN] test binary check failed
2023-09-05T09:24:20 [INFO] beginning to reinstall server
2023-09-05T09:24:20 [INFO] deleting server container
2023-09-05T09:24:20 [INFO] starting language server "elixir-ls", path: "/Users/kevinschweikert/projects/[PROJECT]", id: 4
2023-09-05T09:24:20 [ERROR] invalid LSP message header ""
2023-09-05T09:24:20 [ERROR] Broken pipe (os error 32)
2023-09-05T09:24:20 [ERROR] failed to start language server "elixir-ls": oneshot canceled
2023-09-05T09:24:20 [ERROR] server shut down
2023-09-05T09:24:20 [INFO] About to spawn test binary
2023-09-05T09:24:20 [WARN] test binary failed to launch
2023-09-05T09:24:20 [WARN] test binary check failed
2023-09-05T09:24:20 [INFO] beginning to reinstall server
2023-09-05T09:24:20 [INFO] deleting server container
2023-09-05T09:24:20 [INFO] starting language server "elixir-ls", path: "/Users/kevinschweikert/projects/[PROJECT]", id: 5
@kevinschweikert kevinschweikert added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Sep 5, 2023
@JosephTLyons JosephTLyons added language server failure Language server doesn't work as expected and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Sep 5, 2023
@tarngerine
Copy link

tarngerine commented Sep 6, 2023

having the same thing with tsx

image
2023-09-06T04:46:43 [INFO] Node runtime install_if_needed
2023-09-06T04:46:43 [INFO] Node runtime install_if_needed
2023-09-06T04:46:44 [ERROR] invalid LSP message header ""
2023-09-06T04:46:44 [ERROR] server shut down
2023-09-06T04:46:44 [ERROR] Broken pipe (os error 32)
2023-09-06T04:46:44 [ERROR] failed to start language server "json-language-server": oneshot canceled
2023-09-06T04:46:44 [ERROR] crates/zed/src/languages/json.rs:175: no cached binary
2023-09-06T04:46:44 [INFO] About to spawn test binary
2023-09-06T04:46:44 [WARN] test binary failed to launch
2023-09-06T04:46:44 [WARN] test binary check failed
2023-09-06T04:46:44 [INFO] beginning to reinstall server
2023-09-06T04:46:44 [INFO] deleting server container
2023-09-06T04:46:44 [INFO] starting language server "json-language-server", path: "/Users/tarng/Code/screenplay", id: 3
2023-09-06T04:46:44 [INFO] Node runtime install_if_needed
2023-09-06T04:46:44 [INFO] Node runtime install_if_needed
2023-09-06T04:46:44 [INFO] Node runtime install_if_needed
2023-09-06T04:46:44 [ERROR] invalid LSP message header ""
2023-09-06T04:46:44 [ERROR] Broken pipe (os error 32)
2023-09-06T04:46:44 [ERROR] server shut down
2023-09-06T04:46:44 [ERROR] failed to start language server "typescript-language-server": oneshot canceled
2023-09-06T04:46:44 [ERROR] crates/zed/src/languages/typescript.rs:187: missing executable in directory "/Users/tarng/Library/Application Support/Zed/languages/typescript-language-server"
2023-09-06T04:46:44 [INFO] About to spawn test binary
2023-09-06T04:46:44 [WARN] test binary failed to launch
2023-09-06T04:46:44 [WARN] test binary check failed
2023-09-06T04:46:44 [INFO] beginning to reinstall server
2023-09-06T04:46:44 [INFO] deleting server container
2023-09-06T04:46:44 [INFO] starting language server "typescript-language-server", path: "/Users/tarng/Code/screenplay", id: 4
2023-09-06T04:46:44 [INFO] Node runtime install_if_needed
2023-09-06T04:46:45 [INFO] Node runtime install_if_needed
2023-09-06T04:46:46 [INFO] Node runtime install_if_needed
2023-09-06T04:46:46 [INFO] Node runtime install_if_needed
2023-09-06T04:46:46 [ERROR] invalid LSP message header ""
2023-09-06T04:46:46 [ERROR] Broken pipe (os error 32)
2023-09-06T04:46:46 [ERROR] server shut down
2023-09-06T04:46:46 [ERROR] failed to start language server "json-language-server": oneshot canceled
2023-09-06T04:46:46 [ERROR] crates/zed/src/languages/json.rs:175: no cached binary
2023-09-06T04:46:46 [INFO] About to spawn test binary
2023-09-06T04:46:46 [WARN] test binary failed to launch
2023-09-06T04:46:46 [WARN] test binary check failed
2023-09-06T04:46:46 [INFO] beginning to reinstall server
2023-09-06T04:46:46 [INFO] deleting server container
2023-09-06T04:46:46 [INFO] starting language server "json-language-server", path: "/Users/tarng/Code/screenplay", id: 5
2023-09-06T04:46:46 [INFO] Node runtime install_if_needed
2023-09-06T04:46:47 [INFO] Node runtime install_if_needed
2023-09-06T04:46:47 [INFO] Node runtime install_if_needed
2023-09-06T04:46:48 [INFO] Node runtime install_if_needed
2023-09-06T04:46:50 [WARN] Generic lsp request to node failed: Unhandled method textDocument/hover
2023-09-06T04:46:56 [ERROR] unexpected item event after pane was dropped
2023-09-06T04:46:56 [WARN] Generic lsp request to node failed: Unhandled method textDocument/definition

@kevinschweikert
Copy link
Author

kevinschweikert commented Sep 6, 2023

I did some more digging and deleted all language servers in ~/Library/Application Support/Zed/languages. That forced Zed to re-download the language servers. For my specific project the YamlLS and ElixirLS. It reproduces the error and i can see that the folder for the ElixirLS is empty. The YamlLS downloaded sucessfully

@tarngerine
Copy link

same thing here! these 2 folders never download. just stuck on this "checking for updates" thing... @iamnbutler halp

image

@JosephTLyons JosephTLyons added the language server An umbrella label for all language servers label Sep 7, 2023
@vladstudio
Copy link

same here. I'm anxious to try and enjoy Zed, but it's "checking for updates" to whatever language I have open, forever.

@vladstudio
Copy link

possible duplicate - #4628

@vladstudio
Copy link

Zed.log

@yurnery
Copy link

yurnery commented Sep 15, 2023

same here

@LHousehold
Copy link

Is there somewhere that we can track the progress of this issue?

@JosephTLyons
Copy link
Collaborator

We have 3 or so open tickets about this issue, so I'm going to do a bit of consoliation. Going to close this issue is favor of

since it has a few more upvotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] language server failure Language server doesn't work as expected language server An umbrella label for all language servers
Projects
None yet
Development

No branches or pull requests

6 participants