-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
python stack traces sometimes not logged until concurrently terminated #241
Comments
I'm also getting this bug |
My reproduction is more or less this runwithproxies:
npx concurrently \
--kill-others-on-fail --raw \
-n lightrail,jeanne,drummajor \
-c red,green,blue \
"make buildandrun" \
"proxy --service jeanne --proxy-port 8981 --local-port 8982" \
"proxy --service drummajor --proxy-port 8983 --local-port 8984" Where the two |
I'm also running into this with I noticed the issue also manifests when using Another important clue: the issue doesn't occur when the @gustavohenke if this doesn't ring any immediate bells, I could put in some time to make a little Python repo with a minimal reproduction. I think |
Hey! This issue fell through the cracks. @ixxie if you can make a reproduction, that'd be good - the original one doesn't work for me on macOS Sonoma. |
I've now published a simple reproduction repository which has a minimal Python Uvicorn/FastAPI and a minimal SvelteKit backend. I've manage to reproduce Unicorn HMR failure and ANSI color code propagation failure. I didn't have luck reproducible the exception tracing error; I suspect it requires some subprocess to run in order to manifest. I'm going to keep trying to reproduce it, and I'll push a new commit if I succeed. |
@gustavohenke if you would like I could make a separate issue for the uvicorn HMR crash |
Hey, I haven't been able to reproduce either issue on macOS yet. I might take a bit of time to get around running Windows again, so if you feel like venturing into this codebase, I'll review any PRs 😃 As for the colouring issue - seems like python/poetry is disabling colours when its output is piped, so not much that can be done here (seems like |
When you say 'either issue' it sounds like you tried to reproduce two issues, but there are three (delayed stack trace printing, uvicorn HMR crashing the process and color output not propagating). Did you try all three or only two? If so, which two? I would love to try and dig into the codebase, but I honestly don't even know where I would begin. For us, the HMR issue is critical right now: could you point to where in the codebase I might begin to look to try and resolve this issue? The other two issues are no longer manifesting for us, perhaps because of the |
Oh yeah could've been more specific, sorry!
Sure, let me try to explain the overall structure that might be significant to you:
Concurrently is structured in a quite OOP way, with interfaces that are implemented by all of the command parsers and flow controllers and they're called in sequence. Good luck! |
concurrently version: 5.3.0
Starting webpack and flask app via
npm start
and the following scripts inpackage.json
the flask app contains the following lines:
repeating the request that executes these lines results in the following log output:
Note the stacktrace was only logged once. terminating command vi CTRL-C results in the missing traces being logged:
Concurrently logs traces correctly when the
--raw
flag is set. Any ideas whether this is user error or a bug?reproduction: https://github.com/crvarner/concurrently_bug.git
The text was updated successfully, but these errors were encountered: