achiurizo / consular

Terminal automation
http://rdoc.info/github/achiu/consular/master/file/README.md
MIT License
813 stars 46 forks source link

undefined method 'tabs' on Ruby 1.9.2 #32

Closed secretfader closed 13 years ago

secretfader commented 14 years ago

This only happens occasionally - and when I rerun the command, it works properly.

/Users/nicholaswyoung/.rvm/gems/ruby-1.9.2-p0/gems/terminitor-0.0.5/lib/terminitor/runner.rb:55:in open_tab': undefined methodtabs' for 1..1:Range (NoMethodError) from /Users/nicholaswyoung/.rvm/gems/ruby-1.9.2-p0/gems/terminitor-0.0.5/lib/terminitor/runner.rb:19:in block in do_project' from /Users/nicholaswyoung/.rvm/gems/ruby-1.9.2-p0/gems/terminitor-0.0.5/lib/terminitor/runner.rb:15:ineach' from /Users/nicholaswyoung/.rvm/gems/ruby-1.9.2-p0/gems/terminitor-0.0.5/lib/terminitor/runner.rb:15:in do_project' from /Users/nicholaswyoung/.rvm/gems/ruby-1.9.2-p0/gems/terminitor-0.0.5/lib/terminitor.rb:20:instart' from /Users/nicholaswyoung/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.2/lib/thor/task.rb:22:in run' from /Users/nicholaswyoung/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.2/lib/thor/invocation.rb:118:ininvoke_task' from /Users/nicholaswyoung/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.2/lib/thor.rb:246:in dispatch' from /Users/nicholaswyoung/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.2/lib/thor/base.rb:389:instart' from /Users/nicholaswyoung/.rvm/gems/ruby-1.9.2-p0/gems/terminitor-0.0.5/bin/terminitor:3:in <top (required)>' from /Users/nicholaswyoung/.rvm/gems/ruby-1.9.2-p0/bin/terminitor:19:inload' from /Users/nicholaswyoung/.rvm/gems/ruby-1.9.2-p0/bin/terminitor:19:in `

'

jgorset commented 14 years ago

I'm also experiencing this occasionally under Ruby 1.9.2. It only seems to happen when the terminal window loses focus while Terminitor is running.

theIV commented 14 years ago

I'm getting this behavior under 1.8.7p174, as well.

achiurizo commented 14 years ago

hmm ok i will take a look into this

RStankov commented 14 years ago

I'm getting this error too on 1.8.7, strange but after running the command 2-3 times it "fires" up.

achiurizo commented 14 years ago

is this bug still happening on 0.1.0 or just on 0.0.5?

theIV commented 14 years ago

@achiu: I haven't upgraded yet, but will try shortly (I hope) and let you know.

theIV commented 14 years ago

Hi there,

I just upgraded to 0.1.0. After doing so and trying to reproduce the above—start a terminitor project and then have Terminal lose focus—I get the following: http://gist.github.com/613821

The only other thing to report is that when I did this, I switched to Chrome to have Terminal lose focus, and it opened a Chrome tab. This only seemed to happen the first time.

RStankov commented 14 years ago

With me everything seems to work just fine, but my setup is really simple just tab + runs, when I tried setup I got the same http://gist.github.com/613821 result as theIV

achiurizo commented 13 years ago

Is this issue still persistent? Terminitor is at 0.3.0 now. If it is please reopen this ticket.

theIV commented 13 years ago

@achiu, I haven't upgraded to the latest version, yet. Once I have, I'll get back to you about the issue.