tobi / clarity

Web interface for the grep and tail -f unix tools. Useful for real-time log analysis. Remotely related to splunk
779 stars 66 forks source link

Got an error on clarity /var/log --include '/*' #7

Open rituka opened 14 years ago

rituka commented 14 years ago

I am pretty naive to clarity. For trial I installed clarity at my mac. And when I try to run clarity /var/log --include '/*'
It gives me error like /Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:47:in +': can't convert String into Array (TypeError) from /Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:47:inexecute' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1260:in call' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1260:inparse_in_order' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1247:in catch' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1247:inparse_in_order' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1241:in order!' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1332:inpermute!' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1353:in parse!' from /Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:76:inexecute' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1717:in options' from /Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:20:inexecute' from /Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/bin/clarity:10 from /usr/bin/clarity:19:in `load' from /usr/bin/clarity:19

Can somebody help me in this?

morten commented 14 years ago

I see this as well, it's because v0.9.8 of the gem doesn't include this commit http://github.com/tobi/clarity/commit/8f39d2ea141afb9dfd6f58f46c0657cc3c72fbce - any chance of a version bump on the gem?

anselmdk commented 12 years ago

Just had to fix this locally. I'd appreciate a version bump on the gem as well.

sohaibiftikhar commented 8 years ago

@anselmdk I am not familiar with either ruby on rails or gem. Could you give me a pointer as to how you fixed it.

anselmdk commented 8 years ago

@sohaibiftikhar I'd love to, but unfortunately I moved my entire workflow away from ruby to npm years ago, so I'd be as lost as you. I've actually completely forgotten what I used this tool for in the first place :)