Skip to content

Commit 9cf869c

Browse files
committed
Debug
1 parent 8b4f29e commit 9cf869c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/ruby_lsp/ruby_lsp_rails/runner_client.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ def initialize(message_queue)
106106
end
107107
rescue Errno::EPIPE, IncompleteMessageError
108108
raise InitializationError, @stderr.read
109+
rescue ClosedQueueError => e
110+
puts ActiveSupport::TestCase.current_test
111+
puts e.full_message
109112
end
110113

111114
sig { params(server_addon_path: String).void }

test/test_helper.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ class TestCase
3232
extend T::Sig
3333
include RubyLsp::TestHelper
3434

35+
class << self
36+
attr_accessor :current_test
37+
end
38+
39+
def before_setup
40+
super
41+
self.class.current_test = name
42+
end
43+
3544
sig { returns(String) }
3645
def dummy_root
3746
File.expand_path("#{__dir__}/dummy")

0 commit comments

Comments
 (0)