Warp icon indicating copy to clipboard operation
Warp copied to clipboard

Timings of multiple commands does not work

Open davidrenne opened this issue 3 years ago • 4 comments

Discord username (optional)

No response

Describe the bug

Multiple commands being flushed to buffer only shows the timings of the first one executed.

To Reproduce

Paste this directly in your command line of warp

sleep 2
sleep 5

Expected behaviour

Not this:

Screen Shot 2022-07-26 at 7 08 58 AM

I expect to see 2 seconds and 5 seconds roughly timing both commands being fired.

Screenshots

Screen Shot 2022-07-26 at 7 08 58 AM

Operating System

MacOS

OS Version

12.4

Shell Version

GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin21) Copyright (C) 2007 Free Software Foundation, Inc.

Warp Version

v0.2022.07.18.09.06.stable_01

Additional context

No response

Does this block you from using Warp daily?

No

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

No response

davidrenne avatar Jul 26 '22 11:07 davidrenne

Thanks for reporting and including the repro instructions!

elviskahoro avatar Jul 26 '22 18:07 elviskahoro

@davidrenne thanks for reporting. Are you running these commands one after the other? Or are you typing in sleep 5<return> while sleep 2 is running?

szgupta avatar Jul 29 '22 18:07 szgupta

You just paste them in with one line ending after each command, so it does run them in sequence but fails to time the second one.

davidrenne avatar Jul 29 '22 18:07 davidrenne

You just paste them in with one line ending after each command

In Warp's multiline editor, this would mean that the commands actually run as a unit and the final timing produced is the accumulated time of each command in the unit.

I'm having a bit of trouble reproducing your example without typing in sleep 5<return> while sleep 2 is running. Would you be okay with posting a video of this occurring?

szgupta avatar Jul 29 '22 18:07 szgupta