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

elixir language server issue #6178

Closed
1 task done
palvferenc opened this issue Jun 20, 2023 · 8 comments
Closed
1 task done

elixir language server issue #6178

palvferenc opened this issue Jun 20, 2023 · 8 comments
Labels

Comments

@palvferenc
Copy link

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Hi,

I have an issue while trying to use zed for elixir project.
I followed zed docs to install elixir-ls via brew, after install and restart zed, I have error:
Failed to download elixir language server.
From project root in terminal elixir-ls is starting.
Zed provides the following log entries:
2023-06-20T10:48:00 [ERROR] crates/zed/src/languages/elixir.rs:105: no cached binary
2023-06-20T10:48:00 [ERROR] crates/project/src/project.rs:2455: no asset found matching "elixir-ls.zip"

Environment

mac m1::macos ventura::13.4::zsh

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.

No response

@palvferenc
Copy link
Author

I tried to place elixir-ls from github release zip into ~Library/Application Support/Zed/languages/elixir-ls.
I got:
2023-06-20T12:18:26 [ERROR] crates/project/src/project.rs:2455: Permission denied (os error 13)
I added staff user with readonly permissions for the folder elixir-ls

@noozo
Copy link

noozo commented Jun 20, 2023

getting the same error :(

@Gurp1272
Copy link

Same error here as well. MBA m2. elixir and elixir-ls installed via brew

@moomerman
Copy link

moomerman commented Jun 21, 2023

Also getting the same problem since yesterday, was all working fine before that for me.

2023-06-21T08:45:44 [INFO] starting language server name:elixir-ls, path:"<redacted>", id:0
2023-06-21T08:45:44 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2023-06-21T08:45:44 [ERROR] crates/project/src/project.rs:2455: Permission denied (os error 13)

elixir 1.14.4 installed from source.

If I remove elixir-ls from the languages folder, I get an error in the UI trying to download it:

Language server error: Elixir

no asset found matching "elixir-ls.zip"

And the logs show:

2023-06-21T08:55:06 [ERROR] crates/zed/src/languages/elixir.rs:105: no cached binary
2023-06-21T08:55:06 [ERROR] crates/project/src/project.rs:2455: no asset found matching "elixir-ls.zip"

@moomerman
Copy link

FWIW @mattbaker has a workaround for this in #6179 which also worked for me

@ZombieHarvester
Copy link

ZombieHarvester commented Jun 22, 2023

I started getting this error too

2023-06-22T20:40:23 [INFO] ========== starting zed ==========
2023-06-22T20:40:24 [INFO] Opening main db
2023-06-22T20:40:24 [INFO] Opening main db
2023-06-22T20:40:25 [INFO] Opening main db
2023-06-22T20:40:25 [INFO] Opening main db
2023-06-22T20:40:25 [INFO] starting language server name:elixir-ls, path:"/Users/user/Documents/elixir/app", id:0
2023-06-22T20:40:25 [ERROR] crates/workspace/src/persistence/model.rs:254: No path stored for this editor
2023-06-22T20:40:26 [INFO] unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "08f63014-4f28-426d-b9a1-e9e3f4f68224",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2023-06-22T20:40:26 [INFO] set environment variables from shell:/bin/zsh, path:/Users/user/.asdf/shims:/usr/local/opt/asdf/libexec/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
2023-06-22T20:40:26 [ERROR] crates/project/src/project.rs:2459: Permission denied (os error 13)

@mattbaker
Copy link

@palvferenc - worth closing in favor of #6179 so we can consolidate votes and keep the thread in one place?

@palvferenc
Copy link
Author

Closing issue and promoting #6179 as the main thread, it describes the same problem and contains workaround. Thx @mattbaker !

@JosephTLyons JosephTLyons transferred this issue from zed-industries/community Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants