Project

General

Profile

Actions

Bug #2939

closed

CLI shell sutocompletion does not work

Added by Tomáš Strachota almost 11 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Hitting a tab to complete string "co" in shell mode ends up with a stacktrace.

$ hammer shell
hammer> co/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/lib/hammer_cli/autocompletion.rb:12:in `autocomplete': undefined method `keys' for #<Array:0x7f8e83f99868> (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/lib/hammer_cli/shell.rb:34:in `complete_proc'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/lib/hammer_cli/shell.rb:16:in `call'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/lib/hammer_cli/shell.rb:16:in `readline'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/lib/hammer_cli/shell.rb:16:in `execute'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:67:in `run'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/lib/hammer_cli/abstract.rb:16:in `run'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/subcommand/execution.rb:11:in `execute'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:67:in `run'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/lib/hammer_cli/abstract.rb:16:in `run'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:125:in `run'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/bin/hammer:53
from /usr/bin/hammer:19:in `load'
from /usr/bin/hammer:19

Actions #1

Updated by Martin Bacovsky almost 11 years ago

  • Target version set to 1.3.0
Actions #2

Updated by Martin Bacovsky almost 11 years ago

  • Status changed from New to Assigned
  • Assignee set to Martin Bacovsky
Actions #3

Updated by Martin Bacovsky almost 11 years ago

  • Status changed from Assigned to Resolved
Actions #4

Updated by Dominic Cleal over 10 years ago

  • Project changed from Foreman to Hammer CLI
  • Category deleted (44)
Actions

Also available in: Atom PDF