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

Stack level too deep error when used with awesome_print >= 1.6.0 #297

Closed
sbonebrake opened this issue Dec 30, 2014 · 1 comment
Closed

Comments

@sbonebrake
Copy link
Contributor

Error below:

 Failure/Error: Unable to find matching line from backtrace
     SystemStackError:
       stack level too deep
    /.rvm/gems/ruby-2.1.2/gems/awesome_print-1.6.0/lib/awesome_print/ext/ostruct.rb:14

The class at https://github.com/appium/ruby_lib/blob/master/lib/appium_lib/awesome_print/ostruct.rb is already included in awesome_print 1.6.0, so I think the double calls to alias_method's are creating an infinite loop when 'cast_without_ostruct' is called.

We either need to require awesome_print 1.6.0 and remove the ostruct.rb file from ruby_lib or modify it to be backwards compatible.

sbonebrake added a commit to sbonebrake/ruby_lib that referenced this issue Dec 30, 2014
bootstraponline added a commit that referenced this issue Dec 30, 2014
Upgrade awesome_print and remove the ostruct patch. Fixes issue #297
@bootstraponline
Copy link
Member

#298

Fix merged & released in v5.0.1.

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

2 participants