Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning parser/current is loading parser/ruby22

I'm newbie in Ruby, while excecuting a command I got this error.

warning: parser/current is loading parser/ruby22, which recognizes
warning: 2.2-compliant syntax, but you are running 2.3.1.

My Ruby version is 2.3.1 My parser version is 2.4.0.0.

I don't know why parser is loading from ruby22 which is not even installed in my computer.

Any help would be appreciated.

like image 896
media Avatar asked Feb 27 '17 09:02

media


1 Answers

In my case, I was running an old version of Rubocop (which relies on the parser gem). Removing/updating rubocop or whatever gem is using parser may fix your issue.

like image 179
Solomons_Ecclesiastes Avatar answered Oct 25 '22 20:10

Solomons_Ecclesiastes