From e5f81e511f566edaf2ca871aa72dbb0260c242bf Mon Sep 17 00:00:00 2001 From: wanabe Date: Sun, 19 Jan 2025 10:17:23 +0900 Subject: [ruby/error_highlight] Use `$stderr` instead of STDERR for Ractor https://github.com/ruby/error_highlight/commit/a221a4b0eb --- lib/error_highlight/formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/error_highlight/formatter.rb b/lib/error_highlight/formatter.rb index ba0093d3e5..5180576405 100644 --- a/lib/error_highlight/formatter.rb +++ b/lib/error_highlight/formatter.rb @@ -58,7 +58,7 @@ module ErrorHighlight def self.terminal_width # lazy load io/console, so it's not loaded when 'max_snippet_width' is set require "io/console" - STDERR.winsize[1] if STDERR.tty? + $stderr.winsize[1] if $stderr.tty? rescue LoadError, NoMethodError, SystemCallError # do not truncate when window size is not available end -- cgit v1.2.3