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

Restrict Whitequark version to >= 2.6.4.0 #126

Merged
merged 1 commit into from
Mar 9, 2022
Merged

Conversation

Morriar
Copy link
Collaborator

@Morriar Morriar commented Mar 9, 2022

When initializing the Parser, we call emit_arg_inside_procarg0 = true (https://github.com/Shopify/rbi/blob/main/lib/rbi/parser.rb#L25) but this method was added in v2.6.4.0 (whitequark/parser@17a66bd).

With the wrong version of the parser gem, running Tapioca results in a stack trace:

vendor/bundle/ruby/2.6.0/gems/rbi-0.0.13/lib/rbi/parser.rb:28:in `<class:Parser>': undefined method `emit_arg_inside_procarg0=' for Parser::Builders::Default:Class (NoMethodError)
Did you mean?  emit_procarg0=
	from vendor/bundle/ruby/2.6.0/gems/rbi-0.0.13/lib/rbi/parser.rb:20:in `<module:RBI>'

When initializing the `Parser`, we call `emit_arg_inside_procarg0 = true`
(https://github.com/Shopify/rbi/blob/main/lib/rbi/parser.rb#L25) but this
method was added in v2.6.4.0 (whitequark/parser@17a66bd).

With the wrong version of the `parser` gem, running Tapioca results in a stack trace:

```
vendor/bundle/ruby/2.6.0/gems/rbi-0.0.13/lib/rbi/parser.rb:28:in `<class:Parser>': undefined method `emit_arg_inside_procarg0=' for Parser::Builders::Default:Class (NoMethodError)
Did you mean?  emit_procarg0=
	from vendor/bundle/ruby/2.6.0/gems/rbi-0.0.13/lib/rbi/parser.rb:20:in `<module:RBI>'
```

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Co-authored-by: Ufuk Kayserilioglu <ufuk.kayserilioglu@shopify.com>
@Morriar Morriar added the bugfix Fix a bug label Mar 9, 2022
@Morriar Morriar requested a review from a team March 9, 2022 21:09
@Morriar Morriar merged commit b4f823a into main Mar 9, 2022
@Morriar Morriar deleted the at-fix-parser-version branch March 9, 2022 21:15
@shopify-shipit shopify-shipit bot temporarily deployed to production March 15, 2022 13:30 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fix a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants