Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix ([0] [1]) randomly missing #467

Closed
danbord opened this issue Feb 29, 2024 · 2 comments
Closed

Prefix ([0] [1]) randomly missing #467

danbord opened this issue Feb 29, 2024 · 2 comments
Labels
Milestone

Comments

@danbord
Copy link

danbord commented Feb 29, 2024

Description:
I'm usign concurrently for my azure fucntions node.js project. I need to compile my typescript and run the azure functions at the same time.

here is my package.json script
"start": "concurrently --kill-others \"tsc -w\" \"func start\"",

Problem is that randomly the prefix is missing from the logs. Which misalign my data in the logs which can be pretty annoying sometimes:

image

I tried to remove the prefix (since I don't really need it) but setting it to an empty string brings back the [0] and [1]. I also tried setting it to a radom caracter like "-" but still have the same issue

Expected Behavior:

  1. Do not skip some prefix
  2. Be able to remove the prefix by setting it to empty string

Environment
Node.js v18.19

@gustavohenke
Copy link
Member

gustavohenke commented Apr 7, 2024

Thanks for the report.
I'm pretty sure that your command must be writing multiple lines without a line break at the end, e.g. process.stdout.write('hello\nworld').

How this has been a bug for so long is beyond me 🤦
https://github.com/open-cli-tools/concurrently/blame/v8.2.2/src/logger.ts#L238-L239

@gustavohenke gustavohenke added this to the v9 milestone Aug 31, 2024
@gustavohenke
Copy link
Member

Hey! This is now fixed in v9.0.0.
https://github.com/open-cli-tools/concurrently/releases/tag/v9.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants