Slogger icon indicating copy to clipboard operation
Slogger copied to clipboard

Instapaper "do_log': undefined method `each'"

Open Zettt opened this issue 11 years ago • 1 comments

I'm getting this error when running the instapaperlogger.

InstapaperLogger: Getting Instapaper posts for 71 accounts
/Users/zettt/.Slogger/plugins/instapaperlogger.rb:49:in `do_log': undefined method `each' for #<String:0x000001048039c8> (NoMethodError)
    from /Users/zettt/.Slogger/slogger.rb:283:in `block in run_plugins'
    from /Users/zettt/.Slogger/slogger.rb:270:in `each'
    from /Users/zettt/.Slogger/slogger.rb:270:in `run_plugins'
    from /Users/zettt/.Slogger/slogger.rb:446:in `<top (required)>'
    from /Users/zettt/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/zettt/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./slogger:18:in `<main>'

I'm using Ruby 2.1.0:

$ which ruby
/Users/zettt/.rvm/rubies/ruby-2.1.0/bin/ruby

Any help greatly appreciated.

Zettt avatar May 09 '14 08:05 Zettt

If you're running Slogger through launchd, it's not using Ruby 2.1. It's using 2.0 from the system folder as launchd doesn't load the user environment or rvm. Just FYI.

I'll take a look at the error. Have to see if I even still have an Instapaper account, though...

-Brett

On 9 May 2014, at 3:27, Zettt wrote:

I'm getting this error when running the instapaperlogger.

InstapaperLogger: Getting Instapaper posts for 71 accounts /Users/zettt/.Slogger/plugins/instapaperlogger.rb:49:in do_log': undefined methodeach' for #String:0x000001048039c8 (NoMethodError) from /Users/zettt/.Slogger/slogger.rb:283:in block in run_plugins' from /Users/zettt/.Slogger/slogger.rb:270:ineach' from /Users/zettt/.Slogger/slogger.rb:270:in run_plugins' from /Users/zettt/.Slogger/slogger.rb:446:in<top (required)>' from /Users/zettt/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from /Users/zettt/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from ./slogger:18:in `

'

I'm using Ruby 2.1.0:

$ which ruby /Users/zettt/.rvm/rubies/ruby-2.1.0/bin/ruby

Any help greatly appreciated.


Reply to this email directly or view it on GitHub: https://github.com/ttscoff/Slogger/issues/304

ttscoff avatar May 09 '14 12:05 ttscoff