gatsby: [gatsby develop] Exiting via Ctrl-C leaves terminal/shell in a bad state (Linux/Mac)
Description
When exiting gatsby develop via ^C, the terminal is almost always left in a noecho state. I have observed this on MacOS and Linux both.
Steps to reproduce
Run gatsby develop. After it has entered the server loop, hit ^C. Terminal is no longer echoing prompts, etc. back to the console. Running either tset or reset is required.
Expected result
Terminal should return to the state it was in before gatsby changed it.
Actual result
Terminal is unusuable.
Environment
System: OS: Linux 3.13 Ubuntu 14.04.6 LTS, Trusty Tahr CPU: (12) x64 Intel® Core™ i7-5820K CPU @ 3.30GHz Shell: 4.3.11 - /bin/bash Binaries: Node: 12.6.0 - /home/linuxbrew/.linuxbrew/bin/node npm: 6.9.0 - /home/linuxbrew/.linuxbrew/bin/npm Languages: Python: 2.7.6 - /usr/bin/python Browsers: Chrome: 76.0.3809.100 Firefox: 66.0.3 npmPackages: gatsby: ^2.13.42 => 2.13.42 gatsby-cli: ^2.7.21 => 2.7.21 gatsby-image: ^2.2.7 => 2.2.7 gatsby-plugin-manifest: ^2.2.4 => 2.2.4 gatsby-plugin-mdx: ^1.0.18 => 1.0.18 gatsby-plugin-offline: ^2.2.4 => 2.2.4 gatsby-plugin-optimize-svgs: ^1.0.3 => 1.0.3 gatsby-plugin-react-helmet: ^3.1.2 => 3.1.2 gatsby-plugin-sharp: ^2.2.9 => 2.2.9 gatsby-plugin-styled-components: ^3.1.2 => 3.1.2 gatsby-plugin-typography: ^2.3.2 => 2.3.2 gatsby-remark-images: ^3.1.10 => 3.1.10 gatsby-source-filesystem: ^2.1.6 => 2.1.6 gatsby-transformer-sharp: ^2.2.5 => 2.2.5
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 5
- Comments: 21 (13 by maintainers)
I have been dealing with this issue. After ctl+c out of Gatsby develop… my bash shell works but I can’t see typing. The development session does successfully close for me.
If I type reset (even though I can’t see it) everything resets… ha… and it works again.
Published in
gatsby@2.14.2, thanks to @Js-Brecht’s hard work@Korede-TA this sounds like it’s not really related to the original post here; the end result seems similar, but the cause/effect are actually different. It seems like it’s more related to the changes made in #22759. I think what you’re experiencing really should have its own issue, if you don’t mind opening one, because it deserves further investigation. It should get more attention then.
Good to hear 🙂
@Js-Brecht Just tried it with both the
ctrl-candFailed to compile...cases and the problem seems to be fixed! Thanks 👍