# Error: parser/current is loading parser/ruby21, which recognizes warning: 2.1.5-compliant syntax, but you are running 2.1.2

Posted by ZedTuX 0n R00t on October 8, 2015

Short article about the following warning:

Error: warning: parser/current is loading parser/ruby21, which recognizes warning: 2.1.5-compliant syntax, but you are running 2.1.2

## The meaning

First thing, what does that mean ? The message isn’t really clear, you have to read it 2-3 times before to understand it.

This message come from the parser gem (a dependency of the rubocop gem in my case). This gem is strongly linked to the Ruby version you’re using, and when this warning pops up, it means you’ve upgraded the version of the gem which is for a newer Ruby version than the one you’re running currently.

## The fix

The fix workarounds are the following:

You can do it easily by looking at the history of the lib/parser/current.rb file of the parser gem:
From here you can see from the commit which is interesting for you the version of the gem from the lib/parser/version.rb file.