diff --git a/lib/ruby_lsp/executor.rb b/lib/ruby_lsp/executor.rb index c5cb950ae3..a94d9561eb 100644 --- a/lib/ruby_lsp/executor.rb +++ b/lib/ruby_lsp/executor.rb @@ -130,7 +130,7 @@ def run(request) ) nil - rescue StandardError => error + rescue StandardError, LoadError => error @message_queue << Notification.new( message: "window/showMessage", params: Interface::ShowMessageParams.new( @@ -156,7 +156,7 @@ def run(request) when "textDocument/diagnostic" begin diagnostic(uri) - rescue StandardError => error + rescue StandardError, LoadError => error @message_queue << Notification.new( message: "window/showMessage", params: Interface::ShowMessageParams.new(