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
Can't use system rake with a bundled rails app #159
Comments
I think it might work if you require your environment file ontop of Rakefile something like this:
|
Thanks for the suggestion, but I tried it and it didn't work :(. I'm getting the same error. |
I had the same problem, due to the fact that I was using Ruby 1.9 (rather than 1.8), so I guess the problem comes from the multi-ruby enhancement introduced in bundler 0.8.0. As a matter of fact, I tried installing gem bundler version 0.7 (rather than 0.8) and the problem was solved |
Same problem overhere |
same issue :( |
this works if using bundler 0.9.11 |
same problem here. rails 3 beta2 came with bundler 0.9.14 - that brought the above mentioned problem. thanks for the tip of v0.9.11 - works. |
0.9.13 works for me. .14 and .15 don't |
This is a ruby 1.9 only issue All new version of bundler up to 0.9.18 are broken on ruby 1.9.1 /1.9.2-dev when using system rake Version that works are 0.9.13 Ah.. this is annoying |
something like this also happens to me when i ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux] |
Any updates on this? I am running bundler 0.9.25, ruby 1.9.2-head (1.9.3 trunk) and rails 3.0.0beta3. Any help would be greatly appreciated :-) |
So, a small update: I deleted all gems installed with bundle by running the following in my project directory:
I then manually installed all of the gems using "gem install ..." instead of using bundle and everything appears to be working now. I hope they get this sorted out though, bundler is so much easier when it works :-) |
Thanks for the workaround @topherfangio. That was the only way I could get rake working for now with bundler 0.9.25 and ruby 1.9.1 |
For what it's worth, I had the same problem. Deleted ".bundle" folders and re-installed through gem install and it works now. ruby 1.9.3dev (2010-05-23 trunk 27967) |
If you've already installed gems using bundler then you can easily install them into system with one command from you project's vendor/bundler/cache:
|
Had the same problem I keep forgetting to use bundle exec. Try using, bundle exec rake test:units |
I had a similar problem using bundler 0.9.26. It was caused by one :git => ... sourced gem I was using having a "require 'rake'" in it's gemspec file. |
I've just converted a Rails 2.3.5 app from the old config.gem declarations to use bundler instead. One issue I've had is not being able to use system rake. Things seem to work if I use the bundled rake executable in bin, though.
I think the problem is that rake is a dependency of rails, and when I run a rake task that loads the rails environment, it in turn loads the bundler environment, which loads the bundled copy of rake even though it's already loaded.
I don't mind using
./bin/rake
rather thanrake
, but that has it's own issues. (See this).Anyhow, here's the stack trace I get when running system rake:
The text was updated successfully, but these errors were encountered: