From 4a300d138e5d4118acb8f669b01197535972bb5e Mon Sep 17 00:00:00 2001 From: Vinicius Stock Date: Thu, 12 Dec 2024 14:25:41 -0500 Subject: [PATCH] Pass Ruby interpreter path when replacing process by launcher (#2979) --- exe/ruby-lsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exe/ruby-lsp b/exe/ruby-lsp index a82c176fa..7cd7d64bc 100755 --- a/exe/ruby-lsp +++ b/exe/ruby-lsp @@ -64,7 +64,7 @@ if ENV["BUNDLE_GEMFILE"].nil? # which gives us the opportunity to control which specs are activated and enter degraded mode if any gems failed to # install rather than failing to boot the server completely if options[:launcher] - command = +File.expand_path("ruby-lsp-launcher", __dir__) + command = +"#{Gem.ruby} #{File.expand_path("ruby-lsp-launcher", __dir__)}" command << " --debug" if options[:debug] exit exec(command) end