guard-bundler: Problems using with bundler > 1.12
I got an error using guard-bundler with version > 1.12, sorry I can’t describe the problem, so I’m gonna paste some errors and be available for further investigation
gem install bundler -v 1.12.0
○ guard
/opt/boxen/rbenv/versions/2.3.1/lib/ruby/site_ruby/2.3.0/rubygems.rb:250:in `find_spec_for_exe': can't find gem bundler (>= 0.a) (Gem::GemNotFoundException)
from /opt/boxen/rbenv/versions/2.3.1/lib/ruby/site_ruby/2.3.0/rubygems.rb:278:in `activate_bin_path'
from /opt/boxen/rbenv/versions/2.3.1/bin/bundle:22:in `<main>'
11:29:00 - INFO - Bundling...
/opt/boxen/rbenv/versions/2.3.1/lib/ruby/site_ruby/2.3.0/rubygems.rb:250:in `find_spec_for_exe': can't find gem bundler (>= 0.a) (Gem::GemNotFoundException)
from /opt/boxen/rbenv/versions/2.3.1/lib/ruby/site_ruby/2.3.0/rubygems.rb:278:in `activate_bin_path'
from /opt/boxen/rbenv/versions/2.3.1/bin/bundle:22:in `<main>'
11:29:00 - INFO - Bundle can't be installed -- Please check manually
gem uninstall -x bundler gem install bundler -v 1.11.2
○ guard
11:29:47 - INFO - Bundle already up-to-date
11:29:47 - INFO - Guard is now watching at '/Users/fernandes/src/project'
ps: I don’t discard the possibility of being a bundler bug, I’m just in no position to judge.
thank you!
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (8 by maintainers)
Commits related to this issue
- [EnvironmentPreserver] Fix restoring environment This allows a bundle exec after the path has been changed inside a bundle exec'd program to access the changes — committed to rubygems/bundler by segiddins 8 years ago
- Fix guard bundle exec guard was erroring with `bin_path': can't find gem bundler`. Removing the path and re-bundling got it working again. Found that out by reading https://github.com/guard/guard-bun... — committed to flippercloud/flipper by jnunemaker 7 years ago
on another project the workaround didn’t work, so I did
would be great to check if installed version of bundler is the same running guard, but atm this solution is ok hehehe
hey @e2 thanks for quick reply… 😃
trying
bundle exec guardSame problem 😕
my
gem envon Guardfile output (running withguardandbundle exec guard) the output is the sameabout
RUBYGEMS_GEMDEPS(not set)and last
bundle exec guard -doutputput on this gist for readability
About my env, it’s a rails application with some gems… Sadly it’s an internal project, but I did the following
guard-bundlergemAnd got the same problem, update the project on https://github.com/fernandes/guardbundler (it’s just a vanilla rails app, but we can work on the same repo to figure out what is causing the bug), added you as collab.