Skip to content

ArgumentError - wrong number of arguments (given 2, expected 0): sinatra-2.1.0/lib/sinatra/base.rb:1553:in `caller_locations' #1710

Closed
@vs37559

Description

I am facing this issue when I try to include ActiveSupport::Rescuable in my Sinatra Application. Any ideas??

ERROR - 12/Jul/2021 17:31:27 ArgumentError - wrong number of arguments (given 2, expected 0):
/Users/usr/.rvm/gems/ruby-2.7.2/gems/sinatra-2.1.0/lib/sinatra/base.rb:1553:in 'caller_locations'
rake aborted!
ArgumentError: wrong number of arguments (given 2, expected 0)
/Users/usr/.rvm/gems/ruby-2.7.2/gems/sinatra-2.1.0/lib/sinatra/base.rb:1553:in 'caller_locations'
/Users/usr/.rvm/gems/ruby-2.7.2/gems/activesupport-6.1.3.2/lib/active_support/core_ext/class/attribute.rb:126:in 'class_attribute'
/Users/usr/.rvm/gems/ruby-2.7.2/gems/activesupport-6.1.3.2/lib/active_support/rescuable.rb:13:in 'block in module:Rescuable'
/Users/usr/.rvm/gems/ruby-2.7.2/gems/activesupport-6.1.3.2/lib/active_support/concern.rb:136:in 'class_eval'
/Users/usr/.rvm/gems/ruby-2.7.2/gems/activesupport-6.1.3.2/lib/active_support/concern.rb:136:in 'append_features'

Sinatra: v2.1.0
Ruby: v2.7.2
Active Support: v6.1.3.2

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions