From d158de238b2467d1e5f54f4375bed91b13fcc4be Mon Sep 17 00:00:00 2001 From: Andy Waite Date: Fri, 8 Mar 2024 13:38:03 -0500 Subject: [PATCH] Use $stderr instead of warn --- .rubocop.yml | 3 --- lib/ruby_lsp/ruby_lsp_rails/runner_client.rb | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 3d721ff8..2b32da97 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -35,6 +35,3 @@ Sorbet/StrictSigil: Exclude: - "**/*.rake" - "test/**/*.rb" - -Style/StderrPuts: - Enabled: true diff --git a/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb b/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb index 649fc1b7..98fd9ba1 100644 --- a/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb +++ b/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb @@ -15,10 +15,10 @@ def create_client if File.exist?("bin/rails") new else - warn(<<~MSG) + $stderr.puts(<<~MSG) Ruby LSP Rails failed to locate bin/rails in the current directory: #{Dir.pwd}" MSG - warn("Server dependent features will not be available") + $stderr.puts("Server dependent features will not be available") NullClient.new end rescue Errno::ENOENT, StandardError => e # rubocop:disable Lint/ShadowedException