From b8bf0a52723322e469e94a4cb96286fd48e754ab Mon Sep 17 00:00:00 2001 From: schneems Date: Wed, 3 May 2023 13:48:18 -0500 Subject: [PATCH] [ruby/syntax_suggest] Fix warning message The env var DEBUG does not work to produce detailed output. It is SYNTAX_SUGGEST_DEBUG. It was changed as part of the dead_end to syntax_suggest migration for Ruby 3.2 https://github.com/ruby/syntax_suggest/commit/c41da7aab7 --- lib/syntax_suggest/api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/syntax_suggest/api.rb b/lib/syntax_suggest/api.rb index ad8f641dbf..74e53c2563 100644 --- a/lib/syntax_suggest/api.rb +++ b/lib/syntax_suggest/api.rb @@ -78,7 +78,7 @@ module SyntaxSuggest code_lines: search.code_lines ).call rescue Timeout::Error => e - io.puts "Search timed out SYNTAX_SUGGEST_TIMEOUT=#{timeout}, run with DEBUG=1 for more info" + io.puts "Search timed out SYNTAX_SUGGEST_TIMEOUT=#{timeout}, run with SYNTAX_SUGGEST_DEBUG=1 for more info" io.puts e.backtrace.first(3).join($/) end