-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Currently when you run a command, the "Running" button stays in line with the history. That is incorrect; the "Running" button should stay at the bottom so you know the command is still running. In addition, any exception that is the result of running the command should be printed at the bottom as well.
Example snippet (run in a Python console):
import time
for x in range(0, 100):
print("Hello %d" % (x))
time.sleep(3)
print("Exception! %d" % (garbage))
When you run this, the "Running..." button gets pushed off the screen immediately. It then waits a few seconds, and the exception gets printed where the Running button was (off screen).
This makes it very confusing, as you may think the command is already completed successfully, but it is still running or has thrown an error.
In addition, it should only show "Running..." when it is actually the running command. Since commands run serially, only the actually running command should show running, any other queued commands should show queued. This also affects the startTime/endTime in the command history item - the elapsed time should be the time it took just to execute that command. Hitting cancel shouldn't remove the Running command until the cancellation has been confirmed.