Skip to content

Instantly share code, notes, and snippets.

@invisiblefunnel
Last active December 14, 2015 20:59
Show Gist options
  • Save invisiblefunnel/5148073 to your computer and use it in GitHub Desktop.
Save invisiblefunnel/5148073 to your computer and use it in GitHub Desktop.
Reproduce isolate_namespace error
$ rails _3.2.12_ new test_app --skip-bundle --quiet && cd test_app
$ curl -o Gemfile https://gist.github.com/marcamillion/b34999069f88190017d3/raw/d2dea64f72ac1b09a11b70295e970aeaea5e8f74/Gemfile.rb
$ bundle --quiet
$ ruby -r./config/environment.rb -e "puts method(:singleton_class).source_location"
/Users/dwhalen/.rvm/gems/ruby-1.9.3-p392/gems/serel-1.1.1/lib/serel/exts.rb
17
$ cat >> Gemfile

gem 'sextant', :group => :development
$ bundle --quiet
$ bundle exec rails s
/Users/dwhalen/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.12/lib/rails/engine.rb:388:in `isolate_namespace': private method `singleton_class' called for Sextant:Module (NoMethodError)
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392/gems/sextant-0.2.3/lib/sextant/engine.rb:3:in `<class:Engine>'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392/gems/sextant-0.2.3/lib/sextant/engine.rb:2:in `<module:Sextant>'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392/gems/sextant-0.2.3/lib/sextant/engine.rb:1:in `<top (required)>'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392/gems/sextant-0.2.3/lib/sextant.rb:2:in `<top (required)>'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.0/lib/bundler/runtime.rb:72:in `require'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.0/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.0/lib/bundler/runtime.rb:70:in `each'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.0/lib/bundler/runtime.rb:70:in `block in require'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.0/lib/bundler/runtime.rb:59:in `each'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.0/lib/bundler/runtime.rb:59:in `require'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.0/lib/bundler.rb:132:in `require'
	from /Users/dwhalen/Code/test_app/config/application.rb:7:in `<top (required)>'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.12/lib/rails/commands.rb:53:in `require'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.12/lib/rails/commands.rb:53:in `block in <top (required)>'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.12/lib/rails/commands.rb:50:in `tap'
	from /Users/dwhalen/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.12/lib/rails/commands.rb:50:in `<top (required)>'
	from script/rails:6:in `require'
	from script/rails:6:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment