-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Potential Parser Breaking Change in Newest Version (2.2.2.5) #1934
Comments
/cc @whitequark |
Er, no. That function is defined in
Something is wrong with your install. |
This has been experienced by 2 other people in my office, and we’ve all destroyed our gemsets and rebuilt to confirm. Is there any information I can provide to help debug? |
Then some other gem defines a |
Ah! That was it! pry(main)> ap $LOADED_FEATURES.select{ |n| /lib\/parser.rb/.match(n) }
[
[0] "/Users/pbrown/.rvm/gems/ruby-2.1.5@fma-dev/gems/ruby-imagespec-0.3.1/lib/parser.rb"
] Thanks :) |
+1 Had to downgrade to 0.31 to solve this. |
Same issue here. Anyone have an idea how to remedy this?
|
@typeoneerror What is the exact error you're getting? |
|
Just curious if this warning is safe to ignore and if I can silence it if so? |
See https://github.com/whitequark/parser#compatibility-with-ruby-mri for why it exists. You can silence it with |
@whitequark thanks, that makes sense. and thank you for the silencer 👍 |
I guess I don't understand this. Seems to be one version ahead no matter what I try?
|
Why are you using parser from git? |
Or, well, pre-release, which is more or less same thing |
Honestly don't know. I just installed ruby 2.2.2 via rvm. |
How did you install parser? |
It was installed as a dependency of rubocop, as far as I can tell.
Never explicitly installed it to my recollection and can't find it on my system outside of the gemset that rubocop was installed to. Puzzling! |
Hm, so what's the exact parser version that got selected? This is odd. |
Just deleted my gemset, recreated and did a fresh
and
Whole thing here. |
@yujinakayama Filed a big here yujinakayama/astrolabe#3 |
Great, appreciate your time looking into this. Thanks! |
If you still have the issue, this worked for me: gem install parser # should install the current stable, not pre (currently 2.2.2.6)
gem uninstall parser -v=2.3.0.pre.2 In a Gemfile you might need to add I wonder why the pre version is installed anyway (I thought one would have to explicitly opt-in for that). |
@asaaki Thanks! Your instructions worked for me. 🤘 |
It looks like parser made a breaking change recently that is effecting Rubocop.
The text was updated successfully, but these errors were encountered: