-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Originally filed as zed-industries/zed#28753, but later I found this repo, so reopening here. Will close original issue.
Summary
Remote development Ruby LSP doesn't start / wrong LSP is tried, based on config
I'm connecting to a devcontainer / docker container, macOS host, Debian bookworm aarch64 container.
Description
- Install Ruby extension
Steps to reproduce:
- Open a remote project and open a Ruby file
Expected Behavior:
I expect ruby-lsp to start, but it seems to want to start solargraph.
Actual Behavior:
ruby-lsp doesn't start, it's not visible in the servers list:
Zed.log:
2025-04-15T12:48:27.221695+02:00 [INFO] ========== starting zed ==========
2025-04-15T12:48:27.261046+02:00 [INFO] Opening main db
2025-04-15T12:48:27.26281+02:00 [INFO] Opening main db
2025-04-15T12:48:27.287203+02:00 [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2025-04-15T12:48:27.381187+02:00 [INFO] No prompt template overrides directory found at /Users/tdegrunt/.config/zed/prompt_overrides. Using built-in prompts.
2025-04-15T12:48:27.384033+02:00 [INFO] extensions updated. loading 2, reloading 0, unloading 0
2025-04-15T12:48:27.439766+02:00 [INFO] Opening main db
2025-04-15T12:48:27.477711+02:00 [INFO] set status on client 0: Authenticating
2025-04-15T12:48:27.501202+02:00 [INFO] set status on client 327647: Connecting
2025-04-15T12:48:27.617113+02:00 [INFO] set environment variables from shell:/bin/zsh, path:/opt/homebrew/opt/rustup/bin:/Users/tdegrunt/.rbenv/shims:/opt/homebrew/sbin:/opt/homebrew/bin:/Users/tdegrunt/.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:/opt/X11/bin:/opt/homebrew/opt/rustup/bin:/Users/tdegrunt/.rbenv/shims:/Users/tdegrunt/.bin:/Users/tdegrunt/.orbstack/bin:/Users/tdegrunt/.orbstack/bin
2025-04-15T12:48:27.885384+02:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2025-04-15T12:48:28.442643+02:00 [INFO] add_connection;
2025-04-15T12:48:28.454659+02:00 [INFO] set status on client 327647: Connected { peer_id: PeerId { owner_id: 729, id: 8446139 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2025-04-15T12:48:32.240505+02:00 [ERROR] client:unhandled ssh message name:UpdateProject
2025-04-15T12:48:32.257521+02:00 [INFO] Opening main db
2025-04-15T12:48:32.257643+02:00 [INFO] Opening main db
2025-04-15T12:48:32.287307+02:00 [INFO] Opening main db
2025-04-15T12:48:32.297284+02:00 [ERROR] attempted to get project environment for a non-local worktree at "/workspaces/server"
2025-04-15T12:48:32.32197+02:00 [ERROR] failed to get git blame data: failed to find a git repository for buffer
2025-04-15T12:48:42.642105+02:00 [INFO] Opening main db
2025-04-15T12:49:08.423254+02:00 [INFO] open paths ["/Users/tdegrunt/.config/zed/settings.json"]
2025-04-15T12:49:08.425521+02:00 [INFO] considering ancestor: "/Users/tdegrunt/.config/zed/settings.json/.git"
2025-04-15T12:49:08.425629+02:00 [INFO] considering ancestor: "/Users/tdegrunt/.config/zed/.git"
2025-04-15T12:49:08.426572+02:00 [INFO] considering ancestor: "/Users/tdegrunt/.config/.git"
2025-04-15T12:49:08.426661+02:00 [INFO] containing git repository: None
2025-04-15T12:49:08.426788+02:00 [INFO] scanning directory ""
2025-04-15T12:49:08.431963+02:00 [INFO] attempting to start language server "json-language-server", path: "/Users/tdegrunt/.config/zed/settings.json", id: 1
2025-04-15T12:49:08.432092+02:00 [INFO] Initializing default prettier with plugins {}
2025-04-15T12:49:08.440567+02:00 [ERROR] failed to get git blame data: failed to find a git repository for buffer
2025-04-15T12:49:08.691241+02:00 [INFO] using project environment variables shell launched in "/Users/tdegrunt/.config/zed". PATH="/opt/homebrew/opt/rustup/bin:/Users/tdegrunt/.rbenv/shims:/opt/homebrew/sbin:/opt/homebrew/bin:/Users/tdegrunt/.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:/opt/X11/bin:/opt/homebrew/opt/rustup/bin:/Users/tdegrunt/.rbenv/shims:/Users/tdegrunt/.bin:/Users/tdegrunt/.orbstack/bin:/Users/tdegrunt/.orbstack/bin"
2025-04-15T12:49:08.691556+02:00 [INFO] fetching latest version of language server "json-language-server"
2025-04-15T12:49:09.724684+02:00 [INFO] language server "json-language-server" is already installed
2025-04-15T12:49:09.724924+02:00 [INFO] starting language server process. binary path: "/opt/homebrew/bin/node", working directory: "/Users/tdegrunt/.config/zed", args: ["/Users/tdegrunt/Library/Application Support/Zed/languages/json-language-server/node_modules/vscode-langservers-extracted/bin/vscode-json-language-server", "--stdio"]
2025-04-15T12:49:23.789086+02:00 [ERROR] (remote server) cannot read LSP message headers
2025-04-15T12:49:23.789313+02:00 [ERROR] (remote server) Broken pipe (os error 32)
2025-04-15T12:49:23.789484+02:00 [ERROR] (remote server) Failed to start language server "solargraph": oneshot canceled
2025-04-15T12:49:23.789668+02:00 [ERROR] (remote server) server stderr: "bundler: command not found: solargraph\nInstall missing gem executables with `bundle install`\n"
2025-04-15T12:49:23.789832+02:00 [ERROR] (remote server) server shut down
2025-04-15T13:02:20.162763+02:00 [INFO] Initializing default prettier with plugins {}
2025-04-15T13:02:20.838337+02:00 [ERROR] (remote server) no cached binary
2025-04-15T13:02:20.838444+02:00 [ERROR] (remote server) Failed to start language server "package-version-server": no asset found matching `"package-version-server-aarch64-unknown-linux-gnu.tar.gz"`
2025-04-15T13:02:20.838518+02:00 [ERROR] (remote server) server stderr: ""
2025-04-15T13:02:42.007567+02:00 [INFO] Initializing default prettier with plugins {}
settings.json:
{
"languages": {
"Ruby": {
"language_servers": ["ruby-lsp", "rubocop", "!solargraph"]
}
},
"lsp": {
"ruby-lsp": {
"initialization_options": {
"formatter": "standard",
"linters": ["standard"]
},
"settings": {
"use_bundler": true
}
}
}
ruby-lsp is installed and working:
vscode ➜ /workspaces/server (main) $ bundle exec ruby-lsp --version
0.23.13
In other issues I've read that installing libssl1.1 is what should fix this issue. I'm using Debian Bookwork, where libssl1 is deprecated and uses libssl3. Nonetheless I've tried with:
wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1w-0+deb11u2_arm64.deb
sudo dpkg -i ./libssl1.1_1.1.1w-0+deb11u2_arm64.deb
Sadly that still doesn't start LSP's for me.
Zed Version and System Specs
Zed: v0.181.8 (Zed)
OS: macOS 15.4.0
Memory: 64 GiB
Architecture: aarch64
also with:
Zed: v0.182.11 (Zed)
OS: macOS 15.4.0
Memory: 64 GiB
Architecture: aarch64