Skip to content

Engine: Make sure validate_ruby also works on older Rubies#1411

Merged
marcoroth merged 1 commit intomainfrom
engine-syntax-check
Mar 17, 2026
Merged

Engine: Make sure validate_ruby also works on older Rubies#1411
marcoroth merged 1 commit intomainfrom
engine-syntax-check

Conversation

@marcoroth
Copy link
Owner

@marcoroth marcoroth commented Mar 17, 2026

This pull request updates the engine validate_ruby option to use RubyVM::InstructionSequence.compile to check for syntax errors, as valid syntax might be depended on the version of Ruby you are running.

Resolves #1401

@marcoroth marcoroth changed the title Ruby: Make sure Engine syntax check also works on older Rubies Engine: Make validate_ruby also works on older Rubies Mar 17, 2026
@marcoroth marcoroth changed the title Engine: Make validate_ruby also works on older Rubies Engine: Make sure validate_ruby also works on older Rubies Mar 17, 2026
@marcoroth marcoroth force-pushed the engine-syntax-check branch from 973daf9 to c4ea300 Compare March 17, 2026 19:20
@github-actions github-actions bot added the rbs label Mar 17, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 17, 2026

npx https://pkg.pr.new/@herb-tools/formatter@1411
npx https://pkg.pr.new/@herb-tools/language-server@1411
npx https://pkg.pr.new/@herb-tools/linter@1411

commit: 29e50c9

@github-actions
Copy link

github-actions bot commented Mar 17, 2026

🌿 Interactive Playground and Documentation Preview

A preview deployment has been built for this pull request. Try out the changes live in the interactive playground:


🌱 Grown from commit 29e50c9


✅ Preview deployment has been cleaned up.

@marcoroth marcoroth force-pushed the engine-syntax-check branch from c4ea300 to 29e50c9 Compare March 17, 2026 19:25
@marcoroth marcoroth merged commit 1b1d81e into main Mar 17, 2026
32 checks passed
@marcoroth marcoroth deleted the engine-syntax-check branch March 17, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ruby: Herb does not declare a dependency on prism

1 participant