undefined method `load_missing_constant' during bcms demo #470

Closed
UlfR opened this Issue Jan 28, 2012 · 6 comments

Comments

Projects
None yet
5 participants

UlfR commented Jan 28, 2012

Installed browsercms master(c0b85c0).
Execute bcms dem bctest and receive some errors:

Using browsercms (3.4.0)
Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed.
route mount_browsercms
rake cms:install:migrations
rake aborted!
undefined method load_missing_constant' for moduleActiveSupport::Dependencies'

(See full trace by running task with --trace)
generate browser_cms:cms
/usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions/active_support/dependencies.rb:18:in <module:Dependencies>': undefined methodload_missing_constant' for module ActiveSupport::Dependencies' (NameError) from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions/active_support/dependencies.rb:2:inmodule:ActiveSupport'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions/active_support/dependencies.rb:1:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions.rb:3:inrequire'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions.rb:3:in block in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions.rb:1:ineach'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions.rb:1:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/browsercms.rb:2:inrequire'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/browsercms.rb:2:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:inrequire'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in block (2 levels) in require' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:ineach'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in block in require' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:ineach'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in require' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler.rb:122:inrequire'
from /home/warlock/work/git/bc/bctest/config/application.rb:7:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/railties-3.2.1/lib/rails/commands.rb:24:inrequire'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/railties-3.2.1/lib/rails/commands.rb:24:in <top (required)>' from script/rails:6:inrequire'
from script/rails:6:in <main>' identical public/bcms/README prepend config/environments/development.rb prepend config/environments/test.rb prepend config/environments/production.rb insert config/environments/production.rb insert config/environments/production.rb initializer browsercms.rb initializer browsercms.rb generate cms:template /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions/active_support/dependencies.rb:18:inmodule:Dependencies': undefined method load_missing_constant' for moduleActiveSupport::Dependencies' (NameError)
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions/active_support/dependencies.rb:2:in <module:ActiveSupport>' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions/active_support/dependencies.rb:1:in<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions.rb:3:in require' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions.rb:3:inblock in <top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions.rb:1:in each' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions.rb:1:in<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/browsercms.rb:2:in require' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/browsercms.rb:2:in<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in require' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:inblock (2 levels) in require'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in each' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:inblock in require'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in each' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:inrequire'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler.rb:122:in require' from /home/warlock/work/git/bc/bctest/config/application.rb:7:in<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/railties-3.2.1/lib/rails/commands.rb:24:in require' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/railties-3.2.1/lib/rails/commands.rb:24:in<top (required)>'
from script/rails:6:in require' from script/rails:6:in

'
generate browser_cms:demo_site
/usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions/active_support/dependencies.rb:18:in <module:Dependencies>': undefined methodload_missing_constant' for module ActiveSupport::Dependencies' (NameError) from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions/active_support/dependencies.rb:2:inmodule:ActiveSupport'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions/active_support/dependencies.rb:1:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions.rb:3:inrequire'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions.rb:3:in block in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions.rb:1:ineach'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/cms/extensions.rb:1:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/browsercms.rb:2:inrequire'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/bundler/gems/browsercms-c0b85c0f36ad/lib/browsercms.rb:2:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:inrequire'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in block (2 levels) in require' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:ineach'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in block in require' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:ineach'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in require' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/bundler-1.0.21/lib/bundler.rb:122:inrequire'
from /home/warlock/work/git/bc/bctest/config/application.rb:7:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/railties-3.2.1/lib/rails/commands.rb:24:inrequire'
from /usr/local/rvm/gems/ruby-1.9.3-p0@bc/gems/railties-3.2.1/lib/rails/commands.rb:24:in <top (required)>' from script/rails:6:inrequire'
from script/rails:6:in `'

Same problem here (ruby 1.9.3-p125 + bcms 3.4.1):


/home/username/.rvm/gems/ruby-1.9.3-p125@3.2.2/gems/browsercms-3.4.1/lib/cms/extensions/active_support/dependencies.rb:18:in `<module:Dependencies>': undefined method `load_missing_constant' for module `ActiveSupport::Dependencies' (NameError)
    from /home/username/.rvm/gems/ruby-1.9.3-p125@3.2.2/gems/browsercms-3.4.1/lib/cms/extensions/active_support/dependencies.rb:2:in `<module:ActiveSupport>'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@3.2.2/gems/browsercms-3.4.1/lib/cms/extensions/active_support/dependencies.rb:1:in `<top (required)>'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@3.2.2/gems/browsercms-3.4.1/lib/cms/extensions.rb:3:in `require'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@3.2.2/gems/browsercms-3.4.1/lib/cms/extensions.rb:3:in `block in <top (required)>'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@3.2.2/gems/browsercms-3.4.1/lib/cms/extensions.rb:1:in `each'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@3.2.2/gems/browsercms-3.4.1/lib/cms/extensions.rb:1:in `<top (required)>'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@3.2.2/gems/browsercms-3.4.1/lib/browsercms.rb:2:in `require'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@3.2.2/gems/browsercms-3.4.1/lib/browsercms.rb:2:in `<top (required)>'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `require'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `each'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `block in require'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `each'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.1.3/lib/bundler.rb:119:in `require'
    from /home/username/ruby/sitetest/config/application.rb:7:in `<top (required)>'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@3.2.2/gems/railties-3.1.4/lib/rails/commands.rb:21:in `require'
    from /home/username/.rvm/gems/ruby-1.9.3-p125@3.2.2/gems/railties-3.1.4/lib/rails/commands.rb:21:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'
Collaborator

peakpg commented Apr 2, 2012

Ok, I have push a 3.4.2.rc1 that MAY fix this. However, since I don't have access to a Ubuntu system to test it, somebody else will need to confirm it actually fixes the problem. See https://rubygems.org/gems/browsercms/versions/3.4.2.rc1 for install instructions.

Basically, I just removed the entire lib/cms/extensions/active_support/dependencies.rb file which may have been the problem. I'm frankly not sure what it still existed, and removing it didn't seem to hurt. I think it was a bygone relic of the Pre-engine days as none of the tests failed after removing it.

Let me know if that works and I will push 3.4.2 final.

peakpg added a commit that referenced this issue Apr 2, 2012

[#470] Fix: load_missing_contant
Not 100% sure why we were patching this core active support class, but it seems unnecessary at this point, and since we aliased it without implementing it, I can see why it might have failed.

This is what I get on Ubuntu 10:
Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed.
rake cms:install:migrations
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/version.rb:2: warning: already initialized constant VERSION
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant MAJOR
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant MINOR
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant BUILD
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant PATCH
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/version.rb:6: warning: already initialized constant NUMBERS
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake.rb:27: warning: already initialized constant RAKEVERSION
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/early_time.rb:17: warning: already initialized constant EARLY
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/alt_system.rb:32: warning: already initialized constant WINDOWS
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:31: warning: already initialized constant DEFAULT_RAKEFILES
WARNING: Possible conflict with Rake extension: String#ext already exists
WARNING: Possible conflict with Rake extension: String#pathmap already exists
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task_arguments.rb:77: warning: already initialized constant EMPTY_TASK_ARGS
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/invocation_chain.rb:49: warning: already initialized constant EMPTY
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:9: warning: already initialized constant RUBY
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:16: warning: already initialized constant DEFAULT
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/dsl_definition.rb:150: warning: already initialized constant DeprecatedCommands
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:44: warning: already initialized constant ARRAY_METHODS
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:47: warning: already initialized constant MUST_DEFINE
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:51: warning: already initialized constant MUST_NOT_DEFINE
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:55: warning: already initialized constant SPECIAL_RETURN
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:61: warning: already initialized constant DELEGATING_METHODS
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:364: warning: already initialized constant DEFAULT_IGNORE_PATTERNS
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:370: warning: already initialized constant DEFAULT_IGNORE_PROCS
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake.rb:68: warning: already initialized constant FileList
/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake.rb:69: warning: already initialized constant RakeFileUtils
rake aborted!
stack level too deep

(See full trace by running task with --trace)
create db/browsercms.seeds.rb
append db/seeds.rb

Collaborator

peakpg commented Apr 6, 2012

Which version of BrowserCMS were you working with? Did you try the 3.4.2.rc1 prerelease and still got the above error?

The stack trace you are seeing looks more like a failure to use bundle to execute rake. Try

bundle exec rake cms:install:migrations
Collaborator

peakpg commented Apr 9, 2012

This issue has been reported to be confirmed as fixed in 3.4.2.rc1, so I'm going to mark it as closed.

@peakpg peakpg closed this Apr 9, 2012

peakpg added a commit that referenced this issue May 10, 2012

[#504] Merge 3.4.x into 3.5.x
* Ensure column sorting works with engines
* [#502] Page templates can be edited through UI
* [#491] Adding custom blocks to pages works in edit mode.
* [#470] Fix loading issue on Ubuntu systems.

peakpg added a commit that referenced this issue May 10, 2012

[#504] Merge 3.4.x into 3.5.x
* Ensure column sorting works with engines
* [#502] Page templates can be edited through UI
* [#491] Adding custom blocks to pages works in edit mode.
* [#470] Fix loading issue on Ubuntu systems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment