Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: unexpected ... when the parent method is not forwarding #102

Open
ksss opened this issue Jan 31, 2025 · 0 comments
Open

SyntaxError: unexpected ... when the parent method is not forwarding #102

ksss opened this issue Jan 31, 2025 · 0 comments

Comments

@ksss
Copy link
Owner

ksss commented Jan 31, 2025

Problem

SyntaxError: (eval at /Users/ksss/src/github.com/ksss/orthoses/lib/orthoses/call_tracer/capturable.rb:53):1: syntax error found (SyntaxError)
> 1 | __extract_rest_parameters__(...)
    |                             ^~~ unexpected ... when the parent method is not forwarding

Conditions

Ruby v3.4.1

Cause

This is a bug in Prism.
https://bugs.ruby-lang.org/issues/21031

Workaround

Use parse.y

  • ruby --parser=parse.y orthoses.rb
  • RUBYOPT='--parser=parse.y' bundle exec rake
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

No branches or pull requests

1 participant