concurrently icon indicating copy to clipboard operation
concurrently copied to clipboard

--hide param doesn't work with --raw output

Open top-kat opened this issue 2 years ago • 4 comments

I have tried:

concurrently --kill-others "npm run build:watch" "npm run start:pm2" -r --hide "0"
# OR 
concurrently --kill-others "npm run build:watch" "npm run start:pm2" -r --hide 0

But hiding works only when I remove the -r (raw) param.

Sorry if this is intended behavior.

top-kat avatar Nov 30 '22 17:11 top-kat

I can confirm that the hide option is ignored in raw mode, but I don't know whether this is intended or not. Do you happen to know this @gustavohenke? I'll gladly adjust this in a pull request, if it's not an intended behavior.

paescuj avatar Nov 30 '22 17:11 paescuj

Why the bug happens I think sorta makes sense -- stdio is inherited from the parent when spawning the command: https://github.com/open-cli-tools/concurrently/blob/ed3c18f7849c73df552f6b67fe4e68d030aa1bb1/src/get-spawn-opts.ts#L42

And it should probably be fixed, yes.

gustavohenke avatar Dec 28 '22 23:12 gustavohenke

Hello @gustavohenke 😁 First of all, thank you for this amazing tool.

I'm here just to ask, if you plan to publish this fix anytime soon?

fabiiomiiguel avatar Mar 13 '24 17:03 fabiiomiiguel

There's been no fix yet. PRs are welcome, if you have ideas!

gustavohenke avatar Mar 13 '24 22:03 gustavohenke

Hello @gustavohenke I did a PR fixing this issue (#486) around 2 weeks ago, but it still has no responses, so I was wondering if PRs are still welcome for this?

PoQuatre avatar Jun 27 '24 09:06 PoQuatre

It's merged 🙂

gustavohenke avatar Jul 03 '24 23:07 gustavohenke

Hi folks, sorry for the delay, this is now done in v9.0.0. https://github.com/open-cli-tools/concurrently/releases/tag/v9.0.0

gustavohenke avatar Sep 08 '24 13:09 gustavohenke