Skip to content

Commit 4a300d1

Browse files
authored
Pass Ruby interpreter path when replacing process by launcher (#2979)
1 parent 692b55a commit 4a300d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exe/ruby-lsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if ENV["BUNDLE_GEMFILE"].nil?
6464
# which gives us the opportunity to control which specs are activated and enter degraded mode if any gems failed to
6565
# install rather than failing to boot the server completely
6666
if options[:launcher]
67-
command = +File.expand_path("ruby-lsp-launcher", __dir__)
67+
command = +"#{Gem.ruby} #{File.expand_path("ruby-lsp-launcher", __dir__)}"
6868
command << " --debug" if options[:debug]
6969
exit exec(command)
7070
end

0 commit comments

Comments
 (0)