Skip to content
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

Add support for ruby 1.8.7 (undefined method `source_location' for Proc) #1

Closed
jaleszek opened this issue Jul 6, 2011 · 3 comments
Closed

Comments

@jaleszek
Copy link

jaleszek commented Jul 6, 2011

After gem installation, when the server starts I received:

/home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/active_reload-0.1.0/lib/active_reload.rb:18:in `replace_proc?': undefined method `source_location' for #<Proc:0xb5d97064> (NoMethodError)
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/active_reload-0.1.0/lib/active_reload.rb:12:in `replace?'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/active_reload-0.1.0/lib/active_reload.rb:22:in `replace!'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/active_reload-0.1.0/lib/active_reload.rb:7
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.0.5/lib/rails/initializable.rb:25:in `instance_exec'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.0.5/lib/rails/initializable.rb:25:in `run'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.0.5/lib/rails/initializable.rb:50:in `run_initializers'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.0.5/lib/rails/initializable.rb:49:in `each'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.0.5/lib/rails/initializable.rb:49:in `run_initializers'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.0.5/lib/rails/application.rb:134:in `initialize!'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.0.5/lib/rails/application.rb:77:in `send'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.0.5/lib/rails/application.rb:77:in `method_missing'
    from /home/leszek/lingapp/config/environment.rb:4
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:225:in `load_dependency'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:596:in `new_constants_in'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:225:in `load_dependency'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
    from /home/leszek/lingapp/config.ru:2
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.2.2/lib/rack/builder.rb:46:in `instance_eval'
    from /home/leszek/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.2.2/lib/rack/builder.rb:46:in `initialize'
    from /home/leszek/lingapp/config.ru:1:in `new'
    from /home/leszek/lingapp/config.ru:1
@paneq
Copy link
Owner

paneq commented Jul 6, 2011

ruby 1.8.7 has no Proc#source_location method. I will think about the fix.

@laucb
Copy link

laucb commented Jul 21, 2011

NoMethodError: undefined method `source_location' for #Proc:0x19639d when start the server.
I'm using Jruby-1.6.2, Rails 3.0.7 and Mongrel

paneq added a commit that referenced this issue Jul 23, 2011
@paneq
Copy link
Owner

paneq commented Jul 23, 2011

Try using 0.3.0 version and report any bugs if something does not work.

@paneq paneq closed this as completed Jul 23, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants