Skip to content

Pin the version of parser/current to whatever Ruby version we're using #5461

Description

@jeffwidman

Currently, we pull in whatever the latest version of parser/current is... if that is ahead of our actual Ruby version, then we can get warnings, which we currently silence:

# Ignore parser warnings for ruby 2.7 minor version mismatches.
# This is a recurring issue that occurs whenever the parser gets
# ahead of our installed ruby version.
%r{parser/current is loading parser/ruby27},
/2.7.\d-compliant syntax, but you are running 2.7.\d/,
%r{whitequark/parser}

However, there's another way to handle this--by having the parser version match whatever version of Ruby we're using.

See how the Rubocop project did it:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions