Skip to content

Fix BitClust parse error in Kernel#raise sample causing CI failure on Ruby 4.0#3030

Merged
znz merged 2 commits into
masterfrom
copilot/fix-github-actions-job-failure
Jun 22, 2026
Merged

Fix BitClust parse error in Kernel#raise sample causing CI failure on Ruby 4.0#3030
znz merged 2 commits into
masterfrom
copilot/fix-github-actions-job-failure

Conversation

Copilot AI commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

The rake (ubuntu-latest, 4.0) GitHub Actions job failed during static HTML generation due to a syntax error in documentation sample code for Kernel#raise/Kernel#fail. BitClust raised ParseError because a begin/rescue example block was missing its closing end.

  • Root cause

    • refm/api/src/_builtin/functions contained an unterminated sample block in the raise/fail section (begin ... rescue without final end).
  • Change made

    • Added the missing end immediately after the version-conditional sample output block so the sample is syntactically complete for BitClust parsing.
  • Impact

    • Unblocks static HTML generation for version 4.0 (and other CI matrix entries that process the same source).
begin
  open("nonexist")
rescue
#@since 3.4
  raise   #=> 'open': No such file or directory - "nonexist" (Errno::ENOENT)
#@else
  raise   #=> `open': No such file or directory - "nonexist" (Errno::ENOENT)
#@end
end

Copilot AI changed the title [WIP] Fix the failing GitHub Actions job rake (ubuntu-latest, 4.0) Fix BitClust parse error in Kernel#raise sample causing CI failure on Ruby 4.0 Jun 22, 2026
Copilot AI requested a review from znz June 22, 2026 08:28
Copilot finished work on behalf of znz June 22, 2026 08:28
@znz znz marked this pull request as ready for review June 22, 2026 08:32
@znz znz merged commit 98093a2 into master Jun 22, 2026
17 checks passed
@znz znz deleted the copilot/fix-github-actions-job-failure branch June 22, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants