-
Notifications
You must be signed in to change notification settings - Fork 129
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
espflash monitor takes over the terminal #681
Comments
Seems similar to #464, I do use the same |
My colleagues and I have observed that behavior across different terminals (Windows terminal, ubuntu's terminal, alacritty) and different machines with different OSes (Linux, Windows) I really seems independent of the platform you're running on |
Similar behavior when it cannot find a usb:
|
This bug is the bane of my existence, any clue where I could start looking for it in the espflash codebase? |
I don't have many pointers, but here is where we wait for the Ctrl+C press: https://github.com/esp-rs/espflash/blob/main/espflash/src/cli/monitor/mod.rs#L118-L131. Might be related to the lib we use to process them ( |
I'm also experiencing this bug. Sometimes I after running Something I noticed is that if I reset the microcontroller using the reset button, all the "missing output" suddenly shows up, followed by |
Oh, I can trigger the issue if I simply type a few characters with focussed terminal while logging is happening (e.g. "asdf" in quick succession). If I do that, the terminal output freezes and ctrl+c doesn't work anymore either. |
It happens often that I cannot kill
espflash monitor
withCtrl-C
orCtrl-\
and the logs stop coming aswell. I'm not sure if my code crashed or if it's the connection to the device but it would be nice to have some error message or at least be able to kill the process instead of having to relaunch my terminal.I use alacritty as a terminal btw:
The text was updated successfully, but these errors were encountered: