ahoward / systemu

univeral capture of stdout and stderr and handling of child process pid for windows, *nix, etc.
Other
126 stars 33 forks source link

Macaddr 1.6.2 Systemu Issue #31

Open rennhak opened 10 years ago

rennhak commented 10 years ago

I'm not sure if this is a systemu or macaddr issue. Ran into this trouble on a simple Ruby/Sinatra stack app.

rerun -p '**/*.{rb,js,css,scss,sass,erb,html,haml,ru,slim}' --dir routes,views,public,models,models/general,models/session,helpers,lib,config -- 'rackup config/config.ru'

13:18:10 [rerun] Src launched
/home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require': cannot load such file -- systemu (LoadError)
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require_with_backports'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/macaddr-1.6.2/lib/macaddr.rb:23:in `<top (required)>'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require_with_backports'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/uuid-2.3.7/lib/uuid.rb:14:in `<top (required)>'
        from /home/br/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
        from /home/br/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
        from /home/br/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
        from /home/br/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
        from /home/br/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
        from /home/br/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
        from /home/br/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
        from /home/br/companies/clothesnetwork/companies/clients/external.dev.clothesnetwork.com/ascots_website/src/config/config.ru:6:in `block in <main>'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
        from /home/br/companies/clothesnetwork/companies/clients/external.dev.clothesnetwork.com/ascots_website/src/config/config.ru:in `new'
        from /home/br/companies/clothesnetwork/companies/clients/external.dev.clothesnetwork.com/ascots_website/src/config/config.ru:in `<main>'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/server.rb:250:in `start'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/server.rb:141:in `start'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/bin/rackup:4:in `<top (required)>'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/rackup:23:in `load'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/rackup:23:in `<main>'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/ruby_executable_hooks:15:in `eval'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/ruby_executable_hooks:15:in `<main>'
NoMethodError: undefined method `stop' for nil:NilClass stopping listener
/home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rerun-0.8.2/lib/rerun/watcher.rb:74:in `sleep': execution expired (Timeout::Error)
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rerun-0.8.2/lib/rerun/watcher.rb:74:in `block in adapter'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rerun-0.8.2/lib/rerun/watcher.rb:73:in `adapter'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rerun-0.8.2/lib/rerun/runner.rb:162:in `start'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rerun-0.8.2/lib/rerun/runner.rb:9:in `keep_running'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rerun-0.8.2/bin/rerun:12:in `<top (required)>'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/rerun:23:in `load'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/rerun:23:in `<main>'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/ruby_executable_hooks:15:in `eval'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/ruby_executable_hooks:15:in `<main>'

Current workarouind for me is to pin the macaddr gem to 1.6.1 by adding

gem 'macaddr', '=1.6.1'

to gemfile. With 1.6.1 it works like a charm.

rennhak commented 10 years ago

Cross posted to https://github.com/ahoward/macaddr/issues/21