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
1.0.0.RC1 Creating Extension Problem #932
Comments
The gemspec error has already been fixed for next release I believe. Did you try doing a |
no I did not run bundle install, previously. I just tried running bundle install before rake task and I got this error: Bundler could not find compatible versions for gem "activesupport": merchant (>= 0) ruby depends on I googled the error and it feels like two different versions of activesupport is listed as the requirement. |
I opened the same issue earlier today at #928 Seems like something upstream decided to force rails 3.2, but I don't know how to investigate this properly. Kind of poked around the immediate dependencies, rails spree teststuff, but didn't find anyone requiring 3.2. |
I tried looking around for dependencies that need 3.2.0.rc1 but couldn't find anything. |
When Schof went in to investigate today, it seems the dependency had already been fixed. |
I'm still having the problem, I've been playing around for the last 2 hours but no luck. Maybe I'm not installing the latest spree correctly. I cloned spree repository, using master branch (seem to be the latest, I tried git checkout v1.0.0.rc1 but no dice, it had more bugs like having gemspec in the wrong directory)
then I start a new standalone extension
then I get the same error: spree_extension (>= 0) ruby depends on |
Balls; I guess I only tested it against an integrated extension... I'm also Maybe it's best to just create extensions in an integrated environment for Sorry for the false positive; Cheers, Cameron On Sat, Dec 31, 2011 at 2:55 PM, Ricky Gu <
|
so I ran spree extension merchant inside a existing spree app. then added:
merchant will get bundled into edgestore ok. Then I go into merchant to create a resource, but it doesn't work because I didn't create a test_app. but I can't create a test_app without bundle install, and bundle install still gives me the dependency error. |
You need to run Please re-open if this is still a reproducable issue. |
When I run bundle install inside extension directory I get this error: Bundler could not find compatible versions for gem "activesupport": merchant (>= 0) ruby depends on please reopen the issue as I still cannot create a blank extension. I've been trying for the last two days. sanarothe is also having the same problem. |
I created an screen cast of the issue I've been having. Please take a look and see if anyone else can reproduce. Thanks! |
Just wanted to confirm that I'm also still having this issue; Last night I Rails 3.1.3, Spree 1.0.0.rc1, Ruby 1.9.2 (and 1.9.3, tried both.) Ricky's |
Ok, I was able to duplicate this issue but only with the :git line in my Gemfile. I tried it with Will be investigating now. |
This seems to be due to the dependency we have specified here: https://github.com/spree/spree/blob/master/core/spree_core.gemspec#L32. Pay attention to the order. When you install this gem, it installs the gem dependency like this (found in : s.add_runtime_dependency(%q<rails>, ["<= 3.1.3", ">= 3.1.1"]) For whatever reason, RubyGems thinks that we want the absolutely greatest version of Rails possible which at the moment is Rails 3.2.0.rc1. It's completely ignoring the fact that we expressly want a version We should look deeper into a better fix for this. |
Ryan, Thanks for figuring out this problem. Just wondering, how do you track down this kind of problems? I'd love to learn more about troubleshooting spree so I can contribute and write patches in the future. |
Well, to track this one down I looked at the Gemfile in the extension, which pointed at just the I removed this dependency, ran I went then to double check the Rails version specification in the So then that made me consider how the gem was being installed. So I found the path where Then I experimented by removing one of the dependencies, forcing it to be reliant in |
I think I've fixed this now in @c1016bd17d5c53efb92cb089c72415f995526327. You may have to re-install the |
Most likely fixed by this commit |
Sorry to comment on a close topic but we're also having the same issue. Using 1.0.0rc4 cloned from git. Was using 3.2.1 but backtracked to 3.1.3 after seeing this issue. The problem remains.
Any suggestions?! |
I am trying to create an extension under version 1.0.0 RC1 by
following the tutorial:
http://edgeguides.spreecommerce.com/creating_extensions.html
I navigated to an directory not under any existing rails application
to create a standalone extension.
I run:
(some how merchant.gemspec got put into the directory outside the
extension directory, I had to move that into merchant/)
and I get an error:
rake aborted!
cannot load such file -- generators/spree/install/install_generator
So I look into generator folder and the folder is named merchant instead of spree. if I rename merchant folder to spree that error gets fixed but I get a different error: uninitialized constant Merchant::Generators::Rails
The text was updated successfully, but these errors were encountered: