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

Parser issue #9700

Closed
RCarteri opened this issue Apr 16, 2021 · 7 comments
Closed

Parser issue #9700

RCarteri opened this issue Apr 16, 2021 · 7 comments

Comments

@RCarteri
Copy link

Hello, I'm using VS code and every time I open a warning appears with the following message:

warning: parser/current is loading parser/ruby27, which recognizes warning: 2.7.3-compliant syntax, but you are running 2.7.2. 

warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.

Could you help me to solve this problem? I need to use the 2.7.2 version of Ruby.

PS C:\Users\ricardo.uehlein\Documents\capacitacao-qualidade-de-software> rubocop -V
warning: parser/current is loading parser/ruby27, which recognizes
warning: 2.7.3-compliant syntax, but you are running 2.7.2.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
1.12.1 (using Parser 3.0.1.0, rubocop-ast 1.4.1, running on ruby 2.7.2 x64-mingw32)
PS C:\Users\ricardo.uehlein\Documents\capacitacao-qualidade-de-software> gem install parser
Successfully installed parser-3.0.1.0
Parsing documentation for parser-3.0.1.0
Done installing documentation for parser after 10 seconds
1 gem installed
PS C:\Users\ricardo.uehlein\Documents\capacitacao-qualidade-de-software> rubocop -V        
warning: parser/current is loading parser/ruby27, which recognizes
warning: 2.7.3-compliant syntax, but you are running 2.7.2.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
1.12.1 (using Parser 3.0.1.0, rubocop-ast 1.4.1, running on ruby 2.7.2 x64-mingw32)
@bbatsov
Copy link
Collaborator

bbatsov commented Apr 16, 2021

You can ignore this warning, as it's harmless most of the time. That's outside of our team's control, so we can don't anything about the warning.

@koic
Copy link
Member

koic commented Apr 16, 2021

Parse 3.0.1.0 is compatible with Ruby 2.7.3.
https://github.com/whitequark/parser/blob/master/CHANGELOG.md#v3010-2021-04-06

Parser 3.0.0.0 is compatible with Ruby 2.7.2 and you can suppress the warning by downgrading to Parser 3.0.0.0 in your environment. But I don't recommend it as you can ignore the warning..

@RCarteri
Copy link
Author

Thanks for the answers.
koic, how can I downgrade the parser to 3.0.0.0?

@koic
Copy link
Member

koic commented Apr 16, 2021

You may be able to downgrade below.

% gem uninstall parser -v 3.0.1.0 && gem i parser:3.0.0.0

@RCarteri
Copy link
Author

Thanks

@marcandre
Copy link
Contributor

We actually could do something about it and just silence that warning. Let me put up a PR.

marcandre added a commit to marcandre/rubocop-ast that referenced this issue Apr 16, 2021
marcandre added a commit to marcandre/rubocop that referenced this issue Apr 16, 2021
@marcandre
Copy link
Contributor

Next version of RuboCop will not issue such warnings 👍

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

4 participants