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
uninitialized constant Bundler::SharedHelpers (NameError) #12891
Comments
I can't reproduce this. Can you give more detailed instructions? |
Repo in question: https://github.com/djberg96/io-extra
Full backtrace:
|
The weird thing is that I only see this on my Ubuntu laptop. Using my desktop Ubuntu VM, it works. Identical setup as far as I can tell. I double checked the results of |
Yeah, there must be more to this. I tried with your repo and it just works for me |
If I just run
|
I dunno if this is a clue or what, but it works if I first, explicitly |
@Earlopain Seems to fix running |
@Earlopain I'm also sort of confused by the lockfile.rb code in general. If rubocop needs bundler to function properly, then why not make it a gem dependency instead of this rigamarole they've got going on in that file? |
I guess it's more of a optional dependency. Since everything around it relies on the contents of a lockfile it's a safe assumption to make that bundler will be around as well. That's how I would rationalize it. I think you may be running into a bundler bug. rubygems/rubygems#7647 seems very relevant as it mentions rakefiles and Downgrading bundler to |
Downgrading to 2.5.9 didn't seem to do it, though I'm also not 100% sure because downgrading bundler required some manual fiddling since it's a default gem. Could be, though. But, that still wouldn't explain why it only seems to happen on my laptop. |
It does say this:
Which I guess could be a difference between your two machines. I installed a different psych version and didn't reproduce though |
Yep, I'm only showing psych 5.01 on both systems. |
Curious warning/error with a rubocop rake task, which is simply defined as
RuboCop::RakeTask.new
in the Rakefile:The text was updated successfully, but these errors were encountered: