Skip to content

Commit c0ceaa7

Browse files
authored
Prevent IOError occurrences in the logger thread (#554)
1 parent 6701658 commit c0ceaa7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ GEM
214214
rubocop (~> 1.51)
215215
rubocop-sorbet (0.8.7)
216216
rubocop (>= 1)
217-
ruby-lsp (0.23.0)
217+
ruby-lsp (0.23.3)
218218
language_server-protocol (~> 3.17.0)
219219
prism (>= 1.2, < 2.0)
220220
rbs (>= 3, < 4)

lib/ruby_lsp/ruby_lsp_rails/runner_client.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ def initialize(outgoing_queue)
105105
while (content = @stderr.gets("\n"))
106106
log_message(content, type: RubyLsp::Constant::MessageType::LOG)
107107
end
108+
rescue IOError
109+
# The server was shutdown and stderr is already closed
108110
end,
109111
Thread,
110112
)

0 commit comments

Comments
 (0)