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

require_relative error: byebug.so #40

Closed
richardjortega opened this issue Dec 2, 2013 · 9 comments
Closed

require_relative error: byebug.so #40

richardjortega opened this issue Dec 2, 2013 · 9 comments

Comments

@richardjortega
Copy link

Using Rails 4.01 and Ruby 2.0.0p247 and Mac OSX 10.9 Mavericks I am having a problem loading and calling byebug anywhere inside of my app. Rest of our team has same issue.

The issue also happens when not even calling byebug and prevents all rake/rspec commands from being executed (same error).

/Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/byebug-2.3.1/lib/byebug.rb:1:in `require_relative': cannot load such file -- /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/byebug-2.3.1/lib/byebug.so (LoadError)
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/byebug-2.3.1/lib/byebug.rb:1:in `<top (required)>'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
    from /Users/richardjortega/Dropbox/Code/trueability/config/application.rb:6:in `<top (required)>'
    from /Users/richardjortega/Dropbox/Code/trueability/config/environment.rb:2:in `require'
    from /Users/richardjortega/Dropbox/Code/trueability/config/environment.rb:2:in `<top (required)>'
    from /Users/richardjortega/Dropbox/Code/trueability/spec/spec_helper.rb:80:in `require'
    from /Users/richardjortega/Dropbox/Code/trueability/spec/spec_helper.rb:80:in `<top (required)>'
    from /Users/richardjortega/Dropbox/Code/trueability/spec/controllers/positions_controller_spec.rb:1:in `require'
    from /Users/richardjortega/Dropbox/Code/trueability/spec/controllers/positions_controller_spec.rb:1:in `<top (required)>'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `each'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load_spec_files'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:in `run'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:77:in `rescue in run'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:73:in `run'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun'
@deivid-rodriguez
Copy link
Owner

Hi @richardjortega, thanks for the report!

I think this was fixed by @nobu in 0c8dcc3. I'll release a new version tomorrow so you can confirm whether it fixes it for you.

@deivid-rodriguez
Copy link
Owner

I've just released 2.4.0, please give it a try and let me know!!

@richardjortega
Copy link
Author

## gemfile
gem 'byebug', '2.4.0'

# installed successfully

@deivid-rodriguez First off, thank you for a fast response!

I just tried it again and received a slightly different error but essentially the same.
Breaks just by trying to run a test, with or without calling byebug method.

/Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require': cannot load such file -- byebug.so (LoadError)
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `block in require'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:214:in `load_dependency'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/byebug-2.4.0/lib/byebug.rb:1:in `<top (required)>'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
    from /Users/richardjortega/Dropbox/Code/trueability/config/application.rb:6:in `<top (required)>'
    from /Users/richardjortega/Dropbox/Code/trueability/config/environment.rb:2:in `require'
    from /Users/richardjortega/Dropbox/Code/trueability/config/environment.rb:2:in `<top (required)>'
    from /Users/richardjortega/Dropbox/Code/trueability/spec/spec_helper.rb:80:in `require'
    from /Users/richardjortega/Dropbox/Code/trueability/spec/spec_helper.rb:80:in `<top (required)>'
    from /Users/richardjortega/Dropbox/Code/trueability/spec/controllers/positions_controller_spec.rb:1:in `require'
    from /Users/richardjortega/Dropbox/Code/trueability/spec/controllers/positions_controller_spec.rb:1:in `<top (required)>'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `each'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load_spec_files'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:in `run'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:77:in `rescue in run'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:73:in `run'
    from /Users/richardjortega/.rvm/gems/ruby-2.0.0-p247@ta-web/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun'

@deivid-rodriguez
Copy link
Owner

@richardjortega Could you please try last master and see if that fixes it for you?

## gemfile
gem 'byebug', github: 'deivid-rodriguez/byebug'

@deivid-rodriguez
Copy link
Owner

I've commited some extra changes. I think it should be fixed now. @richardjortega or @ccutrer, could you please try whether last master works for you?

Huge thanks to @luislavena for the support with this issue.

@ccutrer
Copy link

ccutrer commented Dec 5, 2013

Yes, it's working now. thanks

@deivid-rodriguez
Copy link
Owner

Great, just released 2.4.1 containing the fix.

@richardjortega
Copy link
Author

@deivid-rodriguez Thanks, been a little busy at work couldn't test it until today. Confirmed works too. Thank you!

@deivid-rodriguez
Copy link
Owner

You're welcome!!

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