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

Racc::ParseError on argument forwarding with (...) #381

Open
spickermann opened this issue Mar 21, 2023 · 0 comments
Open

Racc::ParseError on argument forwarding with (...) #381

spickermann opened this issue Mar 21, 2023 · 0 comments

Comments

@spickermann
Copy link

spickermann commented Mar 21, 2023

I noticed that the duplication check generates Racc::ParseError log messages about parsing errors on ....

I, [2023-03-21T10:07:19.656114 #1]  INFO -- : Skipping file ./example.rb due to exception (Racc::ParseError): ./example.rb:5 :: parse error on value "..." (tDOT3)

The file basically looks like this:

module Callable
  extend ActiveSupport::Concern

  class_methods do
    def call(...)
      new(...).call
    end

    def call!(...)
      new(...).call!
    end
  end
end

I wonder why the parser fails to parse this, because that syntax was introduced in Ruby 2.7 already. And I wonder if this issue is related to #375 because in that issue the parser is also failing to parse a newer language feature.

What version of Ruby (and thereby what version of the Racc Parser) does CodeClimate use to run the duplication check?

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