diff --git a/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb b/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb index 934c77de..bbc7fefa 100644 --- a/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb +++ b/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb @@ -47,11 +47,12 @@ def initialize rescue Errno::EPERM # If we can't set the session ID, continue rescue NotImplementedError - # setpgrp() may be unimplemented on some platforms + # setpgrp() may be unimplemented on some platformsh end stdin, stdout, stderr, wait_thread = Open3.popen3( - "bin/rails", + "bundle", + "exec", "runner", "#{__dir__}/server.rb", "start",