-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
engine.rb early loading: 'method_missing': undefined local variable or method #1192
Comments
Thanks for your answer! I was actually on the v1.3 branch when it happened, the same problem occurred because it was the same commit. Here's the full backtrace:
If it can help, here is my Gemfile: source 'https://rubygems.org'
ruby '2.2.4'
gem 'rails', '~> 4.2.6'
gem 'pg'
gem 'sass-rails'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'therubyracer', platforms: :ruby
# ActiveModelSerializers
gem 'active_model_serializers', '~> 0.10.0'
# Use Puma as the app server
gem 'puma'
group :development, :test do
gem 'foreman'
gem 'rails_real_favicon'
gem 'pry'
gem 'pry-remote'
gem 'pry-stack_explorer'
gem 'pry-nav'
gem 'better_errors'
gem 'binding_of_caller'
gem 'awesome_print'
gem 'spring'
# testing
gem 'rspec-rails', '~> 3.0'
gem 'rspec-activemodel-mocks'
gem 'rspec-activejob'
gem 'spring-commands-rspec'
gem 'shoulda-matchers', require: false
gem 'factory_girl'
gem 'factory_girl_rails'
gem 'database_cleaner'
gem 'ffaker'
gem 'quiet_assets'
gem 'bullet'
end
gem 'web-console', '~> 3.0', group: :development
group :test do
gem 'capybara'
gem 'capybara-screenshot'
gem 'launchy'
gem 'vcr'
gem 'webmock'
gem 'test_after_commit'
gem 'codeclimate-test-reporter', require: nil
end
# Heroku fixes
group :production, :staging do
gem 'rails_12factor'
gem 'rack-timeout'
gem 'font_assets', github: 'masterexploder/font_assets'
# Password-protected for staging
gem 'lockup'
end
# File uploads - Amazon
gem 'paperclip'
gem 'aws-sdk', '< 2.0'
gem 'fog-aws'
gem 'dragonfly-s3_data_store'
# Caching
gem 'dalli' # memcache
gem 'rack-cache' # http caching
gem 'kgio' # faster kgio IO system
# Rollbad
gem 'rollbar'
# New Relic
# gem 'newrelic_rpm'
# Tasks
gem 'sidekiq'
gem 'sinatra', require: nil
# Front end
gem 'haml'
gem 'react-rails'
gem 'js-routes'
gem 'i18n-js', '>= 3.0.0.rc11'
# Solidus
gem 'solidus', github: 'solidusio/solidus', branch: 'v1.3'
gem 'solidus_auth_devise', github: 'solidusio/solidus_auth_devise'
gem 'solidus_gateway', github: 'solidusio/solidus_gateway'
gem 'braintree'
gem 'solidus_braintree'
# CMS
gem 'alchemy-solidus', github: 'AlchemyCMS/alchemy-solidus', branch: 'master'
gem 'alchemy_cms', github: 'ridem/alchemy_cms', branch: 'ams-0.10' I tried again today, and can confirm that the issue appeared after this commit. |
@ridem is there somewhere in your application that you are performing configuration before the engine is loaded, something similar to: |
Thanks. I can reproduce from that Gemfile |
As far as I can tell adding |
Thanks for the investigation @jhawthorn ! |
This should be fixed by #1203 which is now in the v1.3 branch. We'll probably have another beta release shortly. Thanks again for reporting the issue. |
After the commit that set up all initializers before config/init, I couldn't run the server because
act_as_lists
was not loaded at that point in time:The server crashed with a
'method_missing': undefined local variable or method
error there https://github.com/solidusio/solidus/blob/master/core/lib/spree/core/engine.rb#L48 while trying to loadacts_as_list'
The only way around this was for me to explicitly require
acts_as_list
in my Gemfile so it gets required earlier.Can someone confirm this issue?
The text was updated successfully, but these errors were encountered: