FAQ
Hi,

I would like to use an extension in another extension that I created. After
including it in the gem file of the second extension, I've executed
following command:

rails g spree_user_ext:install



It gives me following error while copying migrations:

       append app/assets/javascripts/store/all.js
       append app/assets/javascripts/admin/all.js
       insert app/assets/stylesheets/store/all.css
       insert app/assets/stylesheets/admin/all.css
          run bundle exec rake railties:install:migrations FROM=spree_user_ext
from "."
rake aborted!
cannot load such file -- spree/core/testing_support/common_rake
/Users/aamir/Dropbox/Projects/spree_medcogulf/Rakefile:5:in `require'
/Users/aamir/Dropbox/Projects/spree_medcogulf/Rakefile:5:in `<top (required
)>'
/Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in
`load'
/Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/rake_module
.rb:25:in `load_rakefile'
/Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/application.rb:589:in
`raw_load_rakefile'
/Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/application.rb:89:in
`block in load_rakefile'
/Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/application
.rb:160:in `standard_exception_handlin
g'
/Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/application.rb:88:in
`load_rakefile'
/Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/application.rb:72:in
`block in run'
/Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/application
.rb:160:in `standard_exception_handlin
g'
/Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/application.rb:70:in
`run'
/Users/aamir/.rvm/gems/ruby-1.9.3-p125/bin/ruby_noexec_wrapper:14:in `eval'
/Users/aamir/.rvm/gems/ruby-1.9.3-p125/bin/ruby_noexec_wrapper:14:in
`<main>'
(See full trace by running task with --trace)

Anyone has any clue?

Thanks
Muhammed Aamir

Search Discussions

  • Ryan Bigg at Jun 11, 2013 at 5:11 am
    Hello Muhammed,

    It seems like this file:

    /Users/aamir/Dropbox/Projects/spree_medcogulf/Rakefile:5

    Is requiring `spree/core/testing_support/common_rake`, which is unavailable
    in Spree 2.0, because it has been moved to
    `spree/testing_support/common_rake`. Change the line from this:

    require 'spree/core/testing_support/common_rake'

    To this:

    require 'spree/testing_support/common_rake'

    And that command should work.

    Note that the extension may have other parts that need to be upgraded for
    Spree 2.0 as well. I don't know what those would be because I can't see the
    code for the extension.

    Good luck!



    On Fri, Jun 7, 2013 at 11:42 AM, Muhammad Aamir wrote:

    Hi,

    I would like to use an extension in another extension that I created.
    After including it in the gem file of the second extension, I've executed
    following command:

    rails g spree_user_ext:install



    It gives me following error while copying migrations:

    append app/assets/javascripts/store/all.js
    append app/assets/javascripts/admin/all.js
    insert app/assets/stylesheets/store/all.css
    insert app/assets/stylesheets/admin/all.css
    run bundle exec rake railties:install:migrations FROM=spree_user_ext
    from "."
    rake aborted!
    cannot load such file -- spree/core/testing_support/common_rake
    /Users/aamir/Dropbox/Projects/spree_medcogulf/Rakefile:5:in `require'
    /Users/aamir/Dropbox/Projects/spree_medcogulf/Rakefile:5:in `<top (
    required)>'
    /Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in
    `load'
    /Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/
    rake_module.rb:25:in `load_rakefile'
    /Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/application.rb:589:in
    `raw_load_rakefile'
    /Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/application.rb:89:in
    `block in load_rakefile'
    /Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/
    application.rb:160:in `standard_exception_handlin
    g'
    /Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/application.rb:88:in
    `load_rakefile'
    /Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/application.rb:72:in
    `block in run'
    /Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/
    application.rb:160:in `standard_exception_handlin
    g'
    /Users/aamir/.rvm/gems/ruby-1.9.3-p125/gems/rake-10.0.4/lib/rake/application.rb:70:in
    `run'
    /Users/aamir/.rvm/gems/ruby-1.9.3-p125/bin/ruby_noexec_wrapper:14:in `eval'
    /Users/aamir/.rvm/gems/ruby-1.9.3-p125/bin/ruby_noexec_wrapper:14:in
    `<main>'
    (See full trace by running task with --trace)

    Anyone has any clue?

    Thanks
    Muhammed Aamir


    --

    Ryan Bigg
    Community Manager
    Spree Commerce, Inc.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedJun 7, '13 at 9:42p
activeJun 11, '13 at 5:11a
posts2
users2
websitespreecommerce.com
irc#RubyOnRails

2 users in discussion

Ryan Bigg: 1 post Muhammad Aamir: 1 post

People

Translate

site design / logo © 2022 Grokbase