← Back to team overview

clicompanion-devs team mailing list archive

[Bug 739402] Re: X out of the 'user argument' window causes error with some commands

 

** Changed in: clicompanion
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of CLI
Companion Development Team, which is subscribed to CLI Companion.
https://bugs.launchpad.net/bugs/739402

Title:
  X out of the 'user argument' window causes error with some commands

Status in CLI Companion:
  Fix Released

Bug description:
  This bug happens with commands that require input from the user,
  commands with a value in the middle column.

  When you click run a dialog opens to ask what you want to replace the
  ? with. On some commands, when you click the X button to close the
  window it causes an error that persists till you close the app.

  To Reproduce.
  Select the command:  grep -i -R -l ? ?
  Click 'Run'
  When the dialog pops up asking for the  'string, path/to/*'  click the X button to close the dialog
  Now try and run any other command. It will not run.

  
  This is the error when closing the  dialog:

  Traceback (most recent call last):
    File "/home/duanedesign/clicompanion/fix-684336/clicompanionlib/controller.py", line 384, in run_command
      c = new_cmnd.format(text)
  IndexError: list index out of range

  Every row you  select after this throws this error:

  /home/duanedesign/clicompanion/fix-684336/clicompanionlib/view.py:227: GtkWarning: IA__gtk_tree_selection_get_selected_rows: assertion `GTK_IS_TREE_SELECTION (selection)' failed
    (model, pathlist)=treeselection.get_selected_rows()

  Then when you try and run another command, this error

  Traceback (most recent call last):
    File "/home/duanedesign/clicompanion/fix-684336/clicompanionlib/controller.py", line 357, in run_command
      row_int = int(view.ROW[0][0]) ## removes everything but number from [5,]
  IndexError: list index out of range

To manage notifications about this bug go to:
https://bugs.launchpad.net/clicompanion/+bug/739402/+subscriptions