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

Bug #739402 reported by Duane Hinnen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CLI Companion
Fix Released
Medium
Marek Bardoński

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

Changed in clicompanion:
importance: Undecided → Medium
Changed in clicompanion:
status: New → Confirmed
assignee: nobody → bdfhjk (bdfhjk)
Changed in clicompanion:
status: Confirmed → Fix Committed
David Caro (dcaro)
Changed in clicompanion:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.