warp icon indicating copy to clipboard operation
warp copied to clipboard

Background exec output is mixed with shell input

Open andig opened this issue 4 years ago • 31 comments

Discord username (optional)

No response

Describe the bug

When running a command in background plus typing another command while the first one still executes, the second command gets garbled and somehow mixed with the output of the background command. As result, the second command errors as it doesn't exist.

To Reproduce

Do:

make&
ls

Expected behaviour

Second command runs as `ls`.

Screenshots

Impossible todo- you have to try for yourself ;)

Operating System

MacOS

OS Version

latest

Shell Version

latest

Additional context

No response

Warp Internal (ignore): linear-label:24888f54-df93-45d5-9bdd-e38f740cac19

No response

andig avatar May 22 '22 13:05 andig

Any feedback on this one? It's really a showstopper for using Warp...

andig avatar Jun 09 '22 13:06 andig

Similarly, the history mixes commands with output. At this stage so many basic functionalities of a shell are broken that Warp is unusable for me.

andig avatar Jun 30 '22 19:06 andig

@andig can you try this from the docs: https://docs.warp.dev/help/known-issues#configuring-and-debugging-your-rc-files

elviskahoro avatar Jul 09 '22 06:07 elviskahoro

@elviskahoro not sure I follow. Are you suggesting to basically disable the shell? I don't think that mixing STDOUT with STDIN is something that depends on the shell's rc files?

andig avatar Jul 12 '22 08:07 andig

@andig Are you suggesting to basically disable the shell? Sorry didn't mean for it to come off this way.

In the scenario for make& ls, I'm confident there isn't anything to do on your end. But for the second issue:

Similarly, the history mixes commands with output.

This happens for other people usually when they're using a plugin that doesn't work with Warp. And the example in the docs where is you set zdotdir is a quick way to run blanks rc files.

Can you share a video of the second bug, where your history mixes with output? Or did you mean this:

Screen Shot 2022-07-20 at 12 59 42

elviskahoro avatar Jul 20 '22 16:07 elviskahoro

Encountering the same issue.

Just running:

while true; do sleep 1; echo hello; done

keeps appending 'hello' to the current input buffer.

yang avatar Aug 22 '22 22:08 yang

Tried disabling a bunch of my rc's including iterm but couldn't track down the issue.

yang avatar Aug 22 '22 22:08 yang

This is happening to me too. It's not related to RC files. The stdout from background processes is getting used as the input for future command lines.

Here's a minimal way to reproduce. Paste this into your terminal and hit enter:

(sleep 1; echo 'not the command I wanted to run') &
Screen Shot 2022-08-26 at 9 27 52 AM

Then you can see that your input is corrupted, and if you hit enter again you will get an error message.

This has corrupted my shell history with thousands of lines of shell output that shouldn't have been used as input.

nicot avatar Aug 26 '22 15:08 nicot

Thanks for sending this over. This is really helpful

elviskahoro avatar Aug 31 '22 15:08 elviskahoro

Of course, thanks for taking a look!

nicot avatar Aug 31 '22 15:08 nicot

Basic shell functionality still broken after six months. Why should I care for reordering tabs and youknowwhat if I can‘t even use history? This is a total disaster :(

andig avatar Nov 01 '22 21:11 andig

@andig OK if we leave the issue open? The issue is still ongoing, and I'd like to use Warp. I agree with you that it seems like this should be a high priority.

nicot avatar Nov 02 '22 12:11 nicot

There's an opportunity for a great feature here. I've always wanted to be able to tail a log, or run some other long process, without having to spawn a new shell/tab. If background and/or long-running processes could easily be moved to their own tabs/blocks/whatever (especially if this is doable after the process starts) then that would be really valuable. Perhaps it might also be part of a solution to the subshell problem?

yozlet avatar Dec 19 '22 19:12 yozlet

I would see this more as an opportunity to fix basic functionality. We can reorder tabs but not have a working history?

andig avatar Dec 19 '22 20:12 andig

Came here to report this bug, but found this thread. Really annoything because you bascailly can't use background jobs in warp because any logged output is mixed with shell input..

Video here: https://wes.io/X6u5egP8

wesbos avatar Dec 23 '22 17:12 wesbos

@elviskahoro do you think your team will be able to prioritize/address this? In my shell usage, it's critical, and this has forced me to go back to using the macOS terminal app. I'd be really excited to restart using Warp.

nicot avatar Jan 25 '23 17:01 nicot

To give it another angle: we are able to order tabs and do fancy stuff but basic functionality is broken.

andig avatar Jan 25 '23 17:01 andig

Hey Folks, this is actively being worked on and improvements in this area are coming in the not-too-distant future. No official ETA, but it's on the roadmap 🚀

dannyneira avatar Feb 14 '23 17:02 dannyneira

Good timing - we were just recording the Syntax episode on warp! Thanks for the update

wesbos avatar Feb 14 '23 18:02 wesbos

@dannyneira any chance to put working history on the agenda before AI and other things? Imho it would be really important to get the basics right. I've never missed AI in a terminal but have productivity impairment every time the history doesn't work...

andig avatar Mar 22 '23 06:03 andig