Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jump to specific Position doesn't check input #59

Open
Jcambass opened this issue Mar 10, 2023 · 0 comments
Open

Jump to specific Position doesn't check input #59

Jcambass opened this issue Mar 10, 2023 · 0 comments

Comments

@Jcambass
Copy link
Contributor

Jcambass commented Mar 10, 2023

Using j to Jump to the specified position and just hitting the enter key after that leads to an exception.


#<Thread:0x000000011c8fa878 /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
        26: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
        25: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:31:in `run'
        24: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:31:in `instance_exec'
        23: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/helpers/ssh_kit_helper.rb:90:in `block (2 levels) in with_ssh_config'
        22: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/helpers/ssh_kit_helper.rb:90:in `instance_exec'
        21: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/helpers/ssh_kit_helper.rb:121:in `block in _with_block'
        20: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/helpers/ssh_kit_helper.rb:121:in `instance_exec'
        19: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/helpers/ssh_kit_helper.rb:127:in `block in _within_block'
        18: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:86:in `within'
        17: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:80:in `execute'
        16: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:148:in `create_command_and_execute'
        15: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:148:in `tap'
        14: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:148:in `block in create_command_and_execute'
        13: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/netssh.rb:130:in `execute_command'
        12: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/netssh.rb:177:in `with_ssh'
        11: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/connection_pool.rb:63:in `with'
        10: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/connection_pool.rb:63:in `call'
         9: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/net-ssh-7.0.1/lib/net/ssh.rb:250:in `start'
         8: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/net-ssh-7.0.1/lib/net/ssh.rb:250:in `new'
         7: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/net-ssh-7.0.1/lib/net/ssh/transport/session.rb:72:in `initialize'
         6: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/socket.rb:632:in `tcp'
         5: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/socket.rb:227:in `foreach'
         4: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/socket.rb:227:in `each'
         3: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/socket.rb:642:in `block in tcp'
         2: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/socket.rb:137:in `connect'
         1: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/socket.rb:64:in `connect_internal'
/Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/socket.rb:64:in `connect': Connection refused - connect(2) for [::1]:22 (Errno::ECONNREFUSED)
        1: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute'
/Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute': Exception while executing on host localhost: Connection refused - connect(2) for [::1]:22 (SSHKit::Runner::ExecuteError)
Traceback (most recent call last):
        26: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
        25: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:31:in `run'
        24: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:31:in `instance_exec'
        23: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/helpers/ssh_kit_helper.rb:90:in `block (2 levels) in with_ssh_config'
        22: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/helpers/ssh_kit_helper.rb:90:in `instance_exec'
        21: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/helpers/ssh_kit_helper.rb:121:in `block in _with_block'
        20: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/helpers/ssh_kit_helper.rb:121:in `instance_exec'
        19: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/helpers/ssh_kit_helper.rb:127:in `block in _within_block'
        18: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:86:in `within'
        17: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:80:in `execute'
        16: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:148:in `create_command_and_execute'
        15: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:148:in `tap'
        14: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:148:in `block in create_command_and_execute'
        13: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/netssh.rb:130:in `execute_command'
        12: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/netssh.rb:177:in `with_ssh'
        11: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/connection_pool.rb:63:in `with'
        10: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/backends/connection_pool.rb:63:in `call'
         9: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/net-ssh-7.0.1/lib/net/ssh.rb:250:in `start'
         8: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/net-ssh-7.0.1/lib/net/ssh.rb:250:in `new'
         7: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/net-ssh-7.0.1/lib/net/ssh/transport/session.rb:72:in `initialize'
         6: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/socket.rb:632:in `tcp'
         5: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/socket.rb:227:in `foreach'
         4: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/socket.rb:227:in `each'
         3: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/socket.rb:642:in `block in tcp'
         2: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/socket.rb:137:in `connect'
         1: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/socket.rb:64:in `connect_internal'
/Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/socket.rb:64:in `connect': Connection refused - connect(2) for [::1]:22 (Errno::ECONNREFUSED)
        1: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute'
/Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/sshkit-1.21.0/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute': Exception while executing on host localhost: Connection refused - connect(2) for [::1]:22 (SSHKit::Runner::ExecuteError)

🔌  ⚡️  in <REDACTED>/ on main 
› runbook exec xy.rb
Previous position detected: 1.1
Do you want to resume at this position? Yes
Repo file /var/folders/98/t_7cht6n2kvdczf7m8v23kmm0000gn/T/runbook_data_jcambass_xy.yml detected. Loading previous state...
Executing XY...

Description:
    This is a test

Step 1.1: Test

Continue? Jump to the specified position
What position would you like to jump to? 
nil versions are discouraged and will be deprecated in Rubygems 4
Traceback (most recent call last):
        25: from /Users/jcambass/.asdf/installs/ruby/2.7.6/bin/runbook:23:in `<main>'
        24: from /Users/jcambass/.asdf/installs/ruby/2.7.6/bin/runbook:23:in `load'
        23: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/exe/runbook:5:in `<top (required)>'
        22: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
        21: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
        20: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
        19: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
        18: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/cli.rb:59:in `exec'
        17: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/runner.rb:42:in `run'
        16: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/entity.rb:55:in `run'
        15: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/hooks.rb:52:in `invoke_with_hooks'
        14: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/hooks.rb:78:in `_execute_around_hooks'
        13: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/hooks.rb:69:in `block in _execute_around_hooks'
        12: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/entity.rb:58:in `block in run'
        11: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/entity.rb:58:in `loop'
        10: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/entity.rb:59:in `block (2 levels) in run'
         9: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/entity.rb:59:in `each_with_index'
         8: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/entity.rb:59:in `each'
         7: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/entity.rb:63:in `block (3 levels) in run'
         6: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/entity.rb:55:in `run'
         5: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/hooks.rb:50:in `invoke_with_hooks'
         4: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/entity.rb:58:in `block in run'
         3: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/entity.rb:58:in `loop'
         2: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/entity.rb:66:in `block (2 levels) in run'
         1: from /Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/entity.rb:126:in `_should_retraverse?'
/Users/jcambass/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/runbook-1.1.0/lib/runbook/run.rb:206:in `start_at_is_substep?': undefined method `start_with?' for nil:NilClass (NoMethodError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant