achiurizo / consular

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

iterm_core.rb:189: syntax error, unexpected ')', expecting '=' (SyntaxError) #87

Closed optixx closed 12 years ago

optixx commented 13 years ago

After updating to 0.6.0 i can't run my scripts anymore

timinitor start dev

/Library/Ruby/Gems/1.8/gems/terminitor-0.6.0/lib/terminitor/runner.rb:16:in `find_core': /Library/Ruby/Gems/1.8/gems/terminitor-0.6.0/lib/terminitor/cores/iterm_core.rb:189: syntax error, unexpected ')', expecting '=' (SyntaxError)
/Library/Ruby/Gems/1.8/gems/terminitor-0.6.0/lib/terminitor/cores/iterm_core.rb:252: syntax error, unexpected kEND, expecting $end
    from /Library/Ruby/Gems/1.8/gems/terminitor-0.6.0/lib/terminitor/runner.rb:60:in `execute_core'
    from /Library/Ruby/Gems/1.8/gems/terminitor-0.6.0/lib/terminitor/cli.rb:19:in `setup'
    from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
    from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
    from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
    from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
    from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `send'
    from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `invoke'
    from /Library/Ruby/Gems/1.8/gems/terminitor-0.6.0/lib/terminitor/runner.rb:149:in `github_repo'
    from /Library/Ruby/Gems/1.8/gems/terminitor-0.6.0/lib/terminitor/cli.rb:26:in `fetch'
    from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
    from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
    from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
    from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
    from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
    from /Library/Ruby/Gems/1.8/gems/terminitor-0.6.0/bin/terminitor:3
    from /usr/bin/terminitor:19:in `load'
    from /usr/bin/terminitor:19
shedd commented 13 years ago

I am also running into this issue, but only in iTerm2. Everything works fine in Terminal with the same script.

LevelbossMike commented 13 years ago

This is caused by Ruby 1.9 specific code in iterm_core. (see https://github.com/achiu/terminitor/issues/82 ) After the last commit this shouldn't be a problem anymore.

achiurizo commented 12 years ago

I've did a rewrite of terminitor here that breaks out the iterm core functionality into its own gems and should have fixed this issue. let me know if this works for you.