Mon-Ouie/pry-remote — Issue #14: Can't run rails console or server, get error:   Server is not a module (TypeError)
Author: dleatham
Created: 2012-03-09 18:38:23+00:00
State: open

Here is my environment:

ruby 1.9.3p125 (2012-02-16) [x86_64-darwin11.2.0]
Rails 3.1.3

group :development do
gem 'pry'
gem 'pry-rails'
gem 'pry-remote'
gem 'pry-nav'
end

When I run: ' > pry -r ./config/environment' I go into the pry console just fine.

When I run: ' > rails c' I can enter the pry console, but only if I have 'pry-remote' disabled. Same for 'rails s', server starts up fine.

When I enable 'pry-remote' in my gem file, for both 'rails c' and 'rails s' , I get:

> rails server
/Users/don/.rvm/gems/ruby-1.9.3-p125/gems/pry-nav-0.1.0/lib/pry-nav/pry_remote_ext.rb:10:in `': Server is not a module (TypeError)
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/pry-nav-0.1.0/lib/pry-nav/pry_remote_ext.rb:4:in `'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `block in require'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/pry-nav-0.1.0/lib/pry-nav.rb:7:in `'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/lib/bundler/runtime.rb:68:in `require'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/lib/bundler/runtime.rb:66:in `each'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/lib/bundler/runtime.rb:66:in `block in require'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/lib/bundler/runtime.rb:55:in `each'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/lib/bundler/runtime.rb:55:in `require'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/lib/bundler.rb:122:in `require'
from /Users/don/rails_projects/storyapp/config/application.rb:8:in `'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.1.3/lib/rails/commands.rb:52:in `require'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.1.3/lib/rails/commands.rb:52:in `block in '
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
from /Users/don/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.1.3/lib/rails/commands.rb:49:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'