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

Go to definition stopped working (Elixir) / LSP troubles #15802

Open
1 task done
camstuart opened this issue Aug 5, 2024 · 6 comments
Open
1 task done

Go to definition stopped working (Elixir) / LSP troubles #15802

camstuart opened this issue Aug 5, 2024 · 6 comments
Labels
bug [core label] elixir Elixir programming language support language server An umbrella label for all language servers language An umbrella label for all programming languages syntax behaviors

Comments

@camstuart
Copy link

camstuart commented Aug 5, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

I have noticed noticed "Go to definition" has stopped working in my Elixir projects over the past few days. Both with command click, f12, right click "Go to definition"

At first I suspected the LSP. So I have tried with all 3 (lexical, elixir-ls, next-ls) and tried restarts (zed and my macbook) along with updates to Zed (now at version: 0.146.5 / 582ad04)

Here is the current state of my settings:

"languages": {
    "Elixir": {
      "language_servers": ["!lexical", "elixir-ls", "!next-ls"],
      "format_on_save": {
        "external": {
          "command": "mix",
          "arguments": ["format", "--stdin-filename", "{buffer_path}", "-"]
        }
      }
    },
    "HEEX": {
      "language_servers": ["!lexical", "elixir-ls", "!next-ls"],
      "format_on_save": {
        "external": {
          "command": "mix",
          "arguments": ["format", "--stdin-filename", "{buffer_path}", "-"]
        }
      }
    }
  }

The logs definitely show an issue with the language server.
I tried running it on the CLI and discovered the shell script:

/Users/cam/Library/Application\ Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh was not executable

So I chmod'd 755, and now see this error in. the logs:

2024-08-05T12:26:29.445189Z [ERROR] cannot read LSP message headers
2024-08-05T12:26:29.445296Z [ERROR] failed to start language server "elixir-ls": oneshot canceled
2024-08-05T12:26:29.445367Z [ERROR] server stderr: Some("Running /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh\n/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh: line 23: /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh: Permission denied\n/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh: line 23: exec: /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh: cannot execute: Undefined error: 0\n")
2024-08-05T12:26:29.445455Z [ERROR] Hit 4 reinstallation attempts for "elixir-ls"
2024-08-05T12:26:29.445524Z [ERROR] Broken pipe (os error 32)
2024-08-05T12:26:29.445595Z [ERROR] server shut down

Environment

Zed: v0.146.5 (Zed)
OS: macOS 14.6.0
Memory: 64 GiB
Architecture: aarch64

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

No response

If applicable, attach your Zed.log file to this issue.

zed.log
Caused by:
    No such file or directory (os error 2)
2024-08-05T12:15:35.037151Z [INFO] starting language server "elixir-ls", path: "/Users/cam/dev/github.com/saassle/zendesk-broadcaster-backend", id: 5
2024-08-05T12:15:37.240804Z [INFO] starting language server. binary path: "/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh", working directory: "/Users/cam/dev/github.com/saassle/zendesk-broadcaster-backend", args: []
2024-08-05T12:15:37.240959Z [ERROR] failed to start language server "elixir-ls": failed to spawn command. path: "/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh", working directory: "/Users/cam/dev/github.com/saassle/zendesk-broadcaster-backend", args: []
2024-08-05T12:15:37.240999Z [ERROR] server stderr: Some("")
2024-08-05T12:15:37.241036Z [ERROR] Hit 4 reinstallation attempts for "elixir-ls"
2024-08-05T12:16:06.503639Z [INFO] open paths ["/Users/cam/.config/zed/settings.json"]
2024-08-05T12:16:06.515788Z [INFO] Initializing default prettier with plugins {}
2024-08-05T12:16:06.515971Z [INFO] starting language servers for JSONC: json-language-server
2024-08-05T12:16:06.516064Z [INFO] starting language server "json-language-server", path: "/Users/cam/.config/zed/settings.json", id: 6
2024-08-05T12:16:06.516318Z [INFO] Initializing default prettier with plugins {}
2024-08-05T12:16:06.516407Z [INFO] Initializing default prettier with plugins {}
2024-08-05T12:16:06.516495Z [INFO] starting language servers for JSONC: json-language-server
2024-08-05T12:16:06.516582Z [INFO] starting language servers for Elixir: elixir-ls
2024-08-05T12:16:06.516667Z [INFO] starting language servers for Elixir: elixir-ls
2024-08-05T12:16:06.526936Z [INFO] fetching latest version of language server "json-language-server"
2024-08-05T12:16:06.52707Z [INFO] Node runtime install_if_needed
2024-08-05T12:16:07.033346Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:16:07.348692Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 1,
  "message": "[INFO] [ghostText] [2024-08-05T12:16:07.347Z] Cancelled during debounce",
  "metadataStr": "[INFO] [ghostText] [2024-08-05T12:16:07.347Z]",
  "extra": [
    "Cancelled during debounce"
  ]
}
2024-08-05T12:16:07.515245Z [INFO] downloading language server "json-language-server"
2024-08-05T12:16:07.515566Z [INFO] Node runtime install_if_needed
2024-08-05T12:16:07.607353Z [INFO] starting language server. binary path: "/Users/cam/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/Users/cam/.config/zed", args: ["/Users/cam/Library/Application Support/Zed/languages/json-language-server/node_modules/vscode-langservers-extracted/bin/vscode-json-language-server", "--stdio"]
2024-08-05T12:26:08.530875Z [ERROR] oneshot canceled
2024-08-05T12:26:10.771133Z [INFO] ========== starting zed ==========
2024-08-05T12:26:10.771854Z [INFO] Opening main db
2024-08-05T12:26:10.774139Z [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2024-08-05T12:26:10.911128Z [ERROR] theme not found: New Darcula
2024-08-05T12:26:10.911742Z [INFO] extensions updated. loading 14, reloading 0, unloading 0
2024-08-05T12:26:10.963518Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:26:10.963622Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:26:10.963849Z [INFO] Opening main db
2024-08-05T12:26:10.964115Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:26:10.964523Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:26:10.964608Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:26:10.964663Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:26:10.964721Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:26:10.964778Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:26:10.964835Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:26:10.966707Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:26:10.999587Z [INFO] Opening main db
2024-08-05T12:26:11.000001Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:26:11.000218Z [INFO] set status on client 0: Authenticating
2024-08-05T12:26:11.001341Z [INFO] Opening main db
2024-08-05T12:26:11.036887Z [INFO] set status on client 175668: Connecting
2024-08-05T12:26:11.038996Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:26:11.039938Z [ERROR] No worktree for path: "/Users/cam/.config/zed/settings.json"
2024-08-05T12:26:11.524365Z [INFO] Initializing default prettier with plugins {}
2024-08-05T12:26:11.524446Z [WARN] no language server found matching 'elixir-ls'
2024-08-05T12:26:11.52449Z [INFO] starting language servers for Elixir: 
2024-08-05T12:26:11.525256Z [INFO] Initializing default prettier with plugins {}
2024-08-05T12:26:11.525319Z [WARN] no language server found matching 'elixir-ls'
2024-08-05T12:26:11.525356Z [INFO] starting language servers for Elixir: 
2024-08-05T12:26:11.525489Z [INFO] Initializing default prettier with plugins {}
2024-08-05T12:26:11.52553Z [WARN] no language server found matching 'elixir-ls'
2024-08-05T12:26:11.525572Z [INFO] starting language servers for Elixir: 
2024-08-05T12:26:11.525611Z [WARN] no language server found matching 'elixir-ls'
2024-08-05T12:26:11.52565Z [INFO] starting language servers for Elixir: 
2024-08-05T12:26:11.529069Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:26:11.537623Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-05T12:26:11.598726Z [INFO] Node runtime install_if_needed
2024-08-05T12:26:11.693884Z [INFO] starting language server. binary path: "/Users/cam/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/", args: ["/Users/cam/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-08-05T12:26:11.938754Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-08-05T12:26:11.936Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-08-05T12:26:11.936Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-08-05T12:26:11.939961Z [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "a34ed23c-1afe-4e96-b7f2-eb55968a469d",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-08-05T12:26:11.971168Z [INFO] Initializing default prettier with plugins {}
2024-08-05T12:26:11.971248Z [INFO] starting language servers for Elixir: elixir-ls
2024-08-05T12:26:11.971296Z [INFO] starting language server "elixir-ls", path: "/Users/cam/dev/github.com/saassle/zendesk-broadcaster-backend", id: 1
2024-08-05T12:26:11.971353Z [INFO] starting language servers for Elixir: elixir-ls
2024-08-05T12:26:11.972361Z [WARN] request completed with error: failed to connect to the server
2024-08-05T12:26:12.456228Z [INFO] add connection to peer
2024-08-05T12:26:12.456287Z [INFO] add_connection;
2024-08-05T12:26:12.456327Z [INFO] waiting for server hello
2024-08-05T12:26:12.462925Z [INFO] got server hello
2024-08-05T12:26:12.462988Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 463, id: 2997688 })
2024-08-05T12:26:12.463055Z [INFO] set status on client 175668: Connected { peer_id: PeerId { owner_id: 463, id: 2997688 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-08-05T12:26:12.463221Z [ERROR] unable to construct a typed envelope connection_id=0/0 message_id=1
2024-08-05T12:26:12.529965Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-08-05T12:26:12.527Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-08-05T12:26:12.527Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-08-05T12:26:13.233817Z [INFO] set environment variables from shell:/bin/zsh, path:/Users/cam/.asdf/shims:/Users/cam/.asdf/bin:/Users/cam/Library/Application Support/reflex/bun/bin:/Users/cam/Downloads/google-cloud-sdk/bin:/Users/cam/.nvm/versions/node/v18.16.0/bin:/Users/cam/.local/bin:/Users/cam/.pyenv/shims:/Users/cam/.pyenv/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/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:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/cam/.cargo/bin:/Users/cam/Library/Application Support/JetBrains/Toolbox/scripts:/usr/local/go/bin:/Users/cam/dev/golang/bin:/Users/cam/dev/golang/bin:/usr/local/bin/julia:/Users/cam/flutter/bin:/Users/cam/.pub-cache/bin
2024-08-05T12:26:16.119799Z [INFO] starting language server. binary path: "/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh", working directory: "/Users/cam/dev/github.com/saassle/zendesk-broadcaster-backend", args: []
2024-08-05T12:26:16.393497Z [ERROR] cannot read LSP message headers
2024-08-05T12:26:16.393632Z [ERROR] failed to start language server "elixir-ls": oneshot canceled
2024-08-05T12:26:16.393708Z [ERROR] server stderr: Some("Running /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh\n/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh: line 23: /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh: Permission denied\n/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh: line 23: exec: /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh: cannot execute: Undefined error: 0\n")
2024-08-05T12:26:16.393806Z [INFO] retrying installation of language server "elixir-ls" in 1s
2024-08-05T12:26:16.393888Z [ERROR] Broken pipe (os error 32)
2024-08-05T12:26:16.393965Z [ERROR] server shut down
2024-08-05T12:26:17.443137Z [INFO] About to spawn test binary
2024-08-05T12:26:17.443438Z [WARN] test binary failed to launch
2024-08-05T12:26:17.443524Z [WARN] test binary check failed
2024-08-05T12:26:17.443609Z [INFO] beginning to reinstall server
2024-08-05T12:26:17.443746Z [INFO] deleting server container
2024-08-05T12:26:17.444235Z [ERROR] server container removal

Caused by:
No such file or directory (os error 2)
2024-08-05T12:26:17.444401Z [INFO] starting language server "elixir-ls", path: "/Users/cam/dev/github.com/saassle/zendesk-broadcaster-backend", id: 2
2024-08-05T12:26:19.627196Z [INFO] starting language server. binary path: "/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh", working directory: "/Users/cam/dev/github.com/saassle/zendesk-broadcaster-backend", args: []
2024-08-05T12:26:19.634654Z [ERROR] cannot read LSP message headers
2024-08-05T12:26:19.63473Z [ERROR] failed to start language server "elixir-ls": oneshot canceled
2024-08-05T12:26:19.634775Z [ERROR] server stderr: Some("Running /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh\n/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh: line 23: /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh: Permission denied\n/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh: line 23: exec: /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh: cannot execute: Undefined error: 0\n")
2024-08-05T12:26:19.634843Z [INFO] retrying installation of language server "elixir-ls" in 1s
2024-08-05T12:26:19.634896Z [ERROR] Broken pipe (os error 32)
2024-08-05T12:26:19.634938Z [ERROR] server shut down
2024-08-05T12:26:20.635606Z [INFO] About to spawn test binary
2024-08-05T12:26:20.635939Z [WARN] test binary failed to launch
2024-08-05T12:26:20.63631Z [WARN] test binary check failed
2024-08-05T12:26:20.636442Z [INFO] beginning to reinstall server
2024-08-05T12:26:20.63662Z [INFO] deleting server container
2024-08-05T12:26:20.641321Z [ERROR] server container removal

Caused by:
No such file or directory (os error 2)
2024-08-05T12:26:20.641606Z [INFO] starting language server "elixir-ls", path: "/Users/cam/dev/github.com/saassle/zendesk-broadcaster-backend", id: 3
2024-08-05T12:26:22.904051Z [INFO] starting language server. binary path: "/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh", working directory: "/Users/cam/dev/github.com/saassle/zendesk-broadcaster-backend", args: []
2024-08-05T12:26:22.911851Z [ERROR] cannot read LSP message headers
2024-08-05T12:26:22.911925Z [ERROR] failed to start language server "elixir-ls": oneshot canceled
2024-08-05T12:26:22.91197Z [ERROR] server stderr: Some("Running /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh\n/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh: line 23: /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh: Permission denied\n/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh: line 23: exec: /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh: cannot execute: Undefined error: 0\n")
2024-08-05T12:26:22.912029Z [INFO] retrying installation of language server "elixir-ls" in 1s
2024-08-05T12:26:22.91208Z [ERROR] Broken pipe (os error 32)
2024-08-05T12:26:22.912124Z [ERROR] server shut down
2024-08-05T12:26:23.917781Z [INFO] About to spawn test binary
2024-08-05T12:26:23.918244Z [WARN] test binary failed to launch
2024-08-05T12:26:23.918426Z [WARN] test binary check failed
2024-08-05T12:26:23.918615Z [INFO] beginning to reinstall server
2024-08-05T12:26:23.919254Z [INFO] deleting server container
2024-08-05T12:26:23.920172Z [ERROR] server container removal

Caused by:
No such file or directory (os error 2)
2024-08-05T12:26:23.920423Z [INFO] starting language server "elixir-ls", path: "/Users/cam/dev/github.com/saassle/zendesk-broadcaster-backend", id: 4
2024-08-05T12:26:26.135568Z [INFO] starting language server. binary path: "/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh", working directory: "/Users/cam/dev/github.com/saassle/zendesk-broadcaster-backend", args: []
2024-08-05T12:26:26.142392Z [ERROR] cannot read LSP message headers
2024-08-05T12:26:26.142467Z [ERROR] failed to start language server "elixir-ls": oneshot canceled
2024-08-05T12:26:26.142514Z [ERROR] server stderr: Some("Running /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh\n/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh: line 23: /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh: Permission denied\n/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh: line 23: exec: /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh: cannot execute: Undefined error: 0\n")
2024-08-05T12:26:26.142569Z [INFO] retrying installation of language server "elixir-ls" in 1s
2024-08-05T12:26:26.142632Z [ERROR] Broken pipe (os error 32)
2024-08-05T12:26:26.142673Z [ERROR] server shut down
2024-08-05T12:26:27.192754Z [INFO] About to spawn test binary
2024-08-05T12:26:27.193329Z [WARN] test binary failed to launch
2024-08-05T12:26:27.193649Z [WARN] test binary check failed
2024-08-05T12:26:27.193963Z [INFO] beginning to reinstall server
2024-08-05T12:26:27.194329Z [INFO] deleting server container
2024-08-05T12:26:27.195471Z [ERROR] server container removal

Caused by:
No such file or directory (os error 2)
2024-08-05T12:26:27.195973Z [INFO] starting language server "elixir-ls", path: "/Users/cam/dev/github.com/saassle/zendesk-broadcaster-backend", id: 5
2024-08-05T12:26:29.437954Z [INFO] starting language server. binary path: "/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh", working directory: "/Users/cam/dev/github.com/saassle/zendesk-broadcaster-backend", args: []
2024-08-05T12:26:29.445189Z [ERROR] cannot read LSP message headers
2024-08-05T12:26:29.445296Z [ERROR] failed to start language server "elixir-ls": oneshot canceled
2024-08-05T12:26:29.445367Z [ERROR] server stderr: Some("Running /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh\n/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh: line 23: /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh: Permission denied\n/Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/language_server.sh: line 23: exec: /Users/cam/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.23.0/launch.sh: cannot execute: Undefined error: 0\n")
2024-08-05T12:26:29.445455Z [ERROR] Hit 4 reinstallation attempts for "elixir-ls"
2024-08-05T12:26:29.445524Z [ERROR] Broken pipe (os error 32)
2024-08-05T12:26:29.445595Z [ERROR] server shut down

@camstuart camstuart added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Aug 5, 2024
@anderkonzen
Copy link

I noticed this as well @camstuart and by making all the "default" scripts executable (not only language_server.sh) it started to work again for me (macOS 14.6, M1). By the default scripts I mean these:

debug_adapter.bat
debug_adapter.sh
exec.bash
exec.zsh
language_server.bat
language_server.sh
launch.sh

(I compared the elixir-ls release with what VSCode does with the plugin).

@camstuart
Copy link
Author

I noticed this as well @camstuart and by making all the "default" scripts executable (not only language_server.sh) it started to work again for me (macOS 14.6, M1). By the default scripts I mean these:

debug_adapter.bat
debug_adapter.sh
exec.bash
exec.zsh
language_server.bat
language_server.sh
launch.sh

(I compared the elixir-ls release with what VSCode does with the plugin).

Fantastic, thanks @anderkonzen that did the trick

@camstuart
Copy link
Author

I have lexical installed myself, do you know the correct settings incantation to point to it @anderkonzen ?

The auto download feature is nice, but I do like having my own LSP. easier to manage versions and updates

@hjemmel
Copy link

hjemmel commented Aug 6, 2024

launch.sh

That did the trick for me as well, thanks :)

@anderkonzen
Copy link

anderkonzen commented Aug 6, 2024

I have lexical installed myself, do you know the correct settings incantation to point to it @anderkonzen ?

The auto download feature is nice, but I do like having my own LSP. easier to manage versions and updates

I'm not sure if this is supported yet... There seems to be some open issues regarding this here #4978, and I understood that zed is pushing LSP logic to the language extensions (#7902 (comment)). Maybe the elixir extension needs to be updated to be smart about detecting LSPs.

@maxdeviant
Copy link
Member

I have lexical installed myself, do you know the correct settings incantation to point to it @anderkonzen ?
The auto download feature is nice, but I do like having my own LSP. easier to manage versions and updates

I'm not sure if this is supported yet... There seems to be some open issues regarding this here #4978, and I understood that zed is pushing LSP logic to the language extensions (#7902 (comment)). Maybe the elixir extension needs to be updated to be smart about detecting LSPs.

The Elixir extension already does support using a language server already on the PATH:

@JosephTLyons JosephTLyons added elixir Elixir programming language support language An umbrella label for all programming languages syntax behaviors language server An umbrella label for all language servers and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Aug 9, 2024
SomeoneToIgnore pushed a commit that referenced this issue Aug 25, 2024
Closes:

- #15802

This PR fixes an issue in the `elixir-ls` language server installation
where some of the required scripts was not being made executable when
installed from GitHub.

Release Notes:

- Fixed elixir-rs files not being executable ([#15802](#15802))
@github-actions github-actions bot added admin read Pending admin review triage Maintainer needs to classify the issue labels Nov 5, 2024
@notpeter notpeter removed triage Maintainer needs to classify the issue admin read Pending admin review labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] elixir Elixir programming language support language server An umbrella label for all language servers language An umbrella label for all programming languages syntax behaviors
Projects
None yet
Development

No branches or pull requests

6 participants