From 5e789c034faee6961d70009c31333e03c76a456e Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 11 Sep 2026 08:49:48 +0900 Subject: [PATCH 1/2] Fix the SYNTAX_SUGGEST_DEBUG spec on Windows cmd.exe does not understand the POSIX `VAR=value command` form and tried to run SYNTAX_SUGGEST_DEBUG as a command. Co-Authored-By: Claude Opus 5 --- spec/integration/ruby_command_line_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/ruby_command_line_spec.rb b/spec/integration/ruby_command_line_spec.rb index 761bd76..1cd0615 100644 --- a/spec/integration/ruby_command_line_spec.rb +++ b/spec/integration/ruby_command_line_spec.rb @@ -208,7 +208,7 @@ def lol puts "haha" EOM - out = `SYNTAX_SUGGEST_DEBUG=1 #{ruby} -I#{lib_dir} -rsyntax_suggest -r#{monkeypatch} #{script} 2>&1` + out = IO.popen({"SYNTAX_SUGGEST_DEBUG" => "1"}, "#{ruby} -I#{lib_dir} -rsyntax_suggest -r#{monkeypatch} #{script} 2>&1", &:read) expect($?.success?).to be_falsey expect(out).to include("boom from monkeypatch") From 92497aa0d1ecb821ebdcf457f087bc1e37cb9126 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 11 Sep 2026 10:20:13 +0900 Subject: [PATCH 2/2] Add changelog entry for the Windows spec fix Co-Authored-By: Claude Opus 5 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb8fffd..96949a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## HEAD (unreleased) - Fix: `SYNTAX_SUGGEST_DEBUG` no longer raises `NoMethodError`. Previously this code path called `$stderr.warn` which is a private method. Now it uses `warn` instead. +- Internal: Fix the `SYNTAX_SUGGEST_DEBUG` integration spec on Windows. ## 3.0.0