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

Unable to exit while stuck connecting to wrong port using Ctrl + C #464

Open
laundmo opened this issue Aug 23, 2023 · 6 comments
Open

Unable to exit while stuck connecting to wrong port using Ctrl + C #464

laundmo opened this issue Aug 23, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@laundmo
Copy link

laundmo commented Aug 23, 2023

Afte accidentally choosing the wrong COM port, espflash got stuck Connecting... and i was not able to exit it using Ctrl + C

@jessebraham jessebraham added the bug Something isn't working label Sep 14, 2023
@SergioGasquez
Copy link
Member

Could you provide some more details? I guess that you are using Windows, but which espflash version, which terminal ...

@MabezDev
Copy link
Member

I've also seen this happen, mainly on connect and when the chip doesn't respond. I have to wait for it to timeout even if a spam Ctrl+C - not very helpful I know, but another data point at least.

@laundmo
Copy link
Author

laundmo commented Jan 25, 2024

Could you provide some more details? I guess that you are using Windows, but which espflash version, which terminal ...

sorry i really should have
teminal: powershell in vscode
version: sorry i dont recall but it should have been the latest release as of the original post. installed using cargo install.

@SergioGasquez
Copy link
Member

We are using crossterm to catch this:
https://github.com/esp-rs/espflash/blob/main/espflash/src/cli/monitor/mod.rs#L115-L136

They have the most common terminals tested: https://github.com/crossterm-rs/crossterm#tested-terminals. Not sure what we could do beside opening an issue upstream or switching the method we use

@SergioGasquez
Copy link
Member

SergioGasquez commented Jan 25, 2024

Could you provide some more details? I guess that you are using Windows, but which espflash version, which terminal ...

sorry i really should have teminal: powershell in vscode version: sorry i dont recall but it should have been the latest release as of the original post. installed using cargo install.

Could you try using Console Host as its a tested terminal from crossterm and see if the issue is also present?

@laundmo
Copy link
Author

laundmo commented Jan 25, 2024

sorry, i don't have any device with me i could test with in the next week. maybe @MabezDev could?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

4 participants