alfred2-top-workflow icon indicating copy to clipboard operation
alfred2-top-workflow copied to clipboard

top -i throws fatal error

Open tim-jones-001 opened this issue 7 years ago • 0 comments

Each time I run top -i I get a silent, but logged fatal error - see below:

E, [2017-08-04 10:33:32 #16288] ERROR -- me.zhaowu.top: A fatal error has occurred. You may seek help in the Alfred supporting site, forum or raise an issue in the bug tracking site.
  #<NoMethodError: undefined method `each_pair' for []:Array>
  ./alfred2_top_workflow.rb:131:in `generate_feedback'  
./alfred2_top_workflow.rb:204:in `on_action'  
/Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.039791F6-83CA-41DF-A832-105259E169BF/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.5/lib/alfred.rb:229:in `block in start_handler'  
/Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.039791F6-83CA-41DF-A832-105259E169BF/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.5/lib/alfred/handler.rb:126:in `block in each_handler'  
(eval):53:in `each'  
(eval):53:in `each'  
/Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.039791F6-83CA-41DF-A832-105259E169BF/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.5/lib/alfred/handler.rb:125:in `each_handler'  
/Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.039791F6-83CA-41DF-A832-105259E169BF/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.5/lib/alfred.rb:228:in `start_handler'  
/Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.039791F6-83CA-41DF-A832-105259E169BF/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.5/lib/alfred.rb:83:in `with_friendly_error'  
./alfred2_top_workflow.rb:424:in `<main>'

tim-jones-001 avatar Aug 04 '17 09:08 tim-jones-001