-
Notifications
You must be signed in to change notification settings - Fork 212
Description
Description:
I'm unable to get the Ruby LSP extension working in VS Code on my Apple Silicon M4 MacBook (running under Rosetta). The activation script runs successfully, but the LSP server fails to start. I've tried all troubleshooting steps from the documentation and previous issues, but nothing resolves the problem.
System Information:
- Mac: Apple Silicon M4 (with Rosetta)
- OS: macOS 15.5
- VS Code: 1.102.0
- Ruby version: 3.3.5 (via rbenv)
- Ruby LSP extension: v0.9.28
- ruby-lsp gem: Installed for Ruby 3.3.5
- Shell: zsh
What I tried:
- Verified rbenv and Ruby version in VS Code terminal
- Ensured activation.rb is executable
- Installed/updated ruby-lsp gem for the correct Ruby version
- Removed/reinstalled the extension and the gem
- Launched VS Code from terminal to inherit shell environment
- Restarted VS Code and machine multiple times
Logs and Output:
Activation script output (manual run):
/usr/local/bin/rbenv exec ruby -EUTF-8:UTF-8 '/Users/prabodh/.vscode/extensions/shopify.ruby-lsp-0.9.28/activation.rb'
RUBY_LSP_ACTIVATION_SEPARATOR3.3.5RUBY_LSP_FS/Users/prabodh/.local/share/gem/ruby/3.3.0,...
RUBY_LSP_ACTIVATION_SEPARATOR%
VS Code Ruby LSP Output Channel:
2025-07-11 12:12:02.174 [info] (blog-it) Found rbenv executable at /usr/local/bin
2025-07-11 12:12:02.175 [info] (blog-it) Running command: `/usr/local/bin/rbenv exec ruby -EUTF-8:UTF-8 '/Users/prabodh/.vscode/extensions/shopify.ruby-lsp-0.9.28/activation.rb'` in /Users/prabodh/pixelcompute/blog-it using shell: /usr/bin/arch
2025-07-11 12:12:02.178 [info] (blog-it) Running command: `/usr/bin/ruby -EUTF-8:UTF-8 '/Users/prabodh/.vscode/extensions/shopify.ruby-lsp-0.9.28/activation.rb'` in /Users/prabodh/pixelcompute/blog-it using shell: /usr/bin/arch
2025-07-11 12:18:13.977 [info] (blog-it) Restarting the Ruby LSP because configuration changed
2025-07-11 12:18:13.983 [info] (blog-it) Found rbenv executable at /usr/local/bin
2025-07-11 12:18:13.985 [info] (blog-it) Running command: `/usr/local/bin/rbenv exec ruby -EUTF-8:UTF-8 '/Users/prabodh/.vscode/extensions/shopify.ruby-lsp-0.9.28/activation.rb'` in /Users/prabodh/pixelcompute/blog-it using shell: /usr/bin/arch
2025-07-11 12:19:37.248 [info] (blog-it) Found rbenv executable at /usr/local/bin
2025-07-11 12:19:37.248 [info] (blog-it) Running command: `/usr/local/bin/rbenv exec ruby -EUTF-8:UTF-8 '/Users/prabodh/.vscode/extensions/shopify.ruby-lsp-0.9.28/activation.rb'` in /Users/prabodh/pixelcompute/blog-it using shell: /usr/bin/arch
Expected behavior:
Ruby LSP extension activates and provides language server features in VS Code.
Actual behavior:
I get the following error on start up
Automatic Ruby environment activation with rbenv failed: Command failed: /usr/local/bin/rbenv exec ruby -EUTF-8:UTF-8 '/Users/prabodh/.vscode/extensions/shopify.ruby-lsp-0.9.28/activation.rb' arch: /usr/local/bin/rbenv exec ruby -EUTF-8:UTF-8 '/Users/prabodh/.vscode/extensions/shopify.ruby-lsp-0.9.28/activation.rb' isn't executable
Additional context:
- No other Ruby managers (rvm, chruby) installed.
- No conflicting VS Code extensions.
- This occurs even in a minimal, new Ruby project.
- All environment variables appear correct;
ruby-lsp
gem is installed and available.
Steps to reproduce:
- Use Apple Silicon M4 MacBook (Rosetta)
- Install Ruby 3.3.5 with rbenv
- Install latest Ruby LSP extension in VS Code
- Open any Ruby project
Request:
Please advise on further debugging steps, or let me know if this is a known compatibility issue with M4/Rosetta or Ruby 3.3.5. Happy to provide more logs or run additional diagnostics.